Class: Moov::Models::Components::ColorsValidationError
- Inherits:
-
Object
- Object
- Moov::Models::Components::ColorsValidationError
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/colorsvalidationerror.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(light: nil, dark: nil) ⇒ ColorsValidationError
constructor
A new instance of ColorsValidationError.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(light: nil, dark: nil) ⇒ ColorsValidationError
Returns a new instance of ColorsValidationError.
22 23 24 25 |
# File 'lib/moov/models/components/colorsvalidationerror.rb', line 22 def initialize(light: nil, dark: nil) @light = light @dark = dark end |
Instance Method Details
#==(other) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/moov/models/components/colorsvalidationerror.rb', line 28 def ==(other) return false unless other.is_a? self.class return false unless @light == other.light return false unless @dark == other.dark true end |