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