Created
November 8, 2016 01:32
-
-
Save ramontayag/e46d5396abcf071168ce0b009dd6eedc to your computer and use it in GitHub Desktop.
Dry::Struct - omit value from init hash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Car < Dry::Struct | |
attribute :brand_name, Types::String.optional | |
attribute :model_number, Types::String.optional | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment