Class: Moov::Models::Components::UpdateColors

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/updatecolors.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(dark: nil, light: nil) ⇒ UpdateColors

Returns a new instance of UpdateColors.



22
23
24
25
# File 'lib/moov/models/components/updatecolors.rb', line 22

def initialize(dark: nil, light: nil)
  @dark = dark
  @light = light
end

Instance Method Details

#==(other) ⇒ Object



28
29
30
31
32
33
# File 'lib/moov/models/components/updatecolors.rb', line 28

def ==(other)
  return false unless other.is_a? self.class
  return false unless @dark == other.dark
  return false unless @light == other.light
  true
end