Class: Kombo::Models::Shared::Assets

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/kombo/models/shared/assets.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(logo_url:, icon_url:, icon_black_url:) ⇒ Assets

Returns a new instance of Assets.



23
24
25
26
27
# File 'lib/kombo/models/shared/assets.rb', line 23

def initialize(logo_url:, icon_url:, icon_black_url:)
  @logo_url = logo_url
  @icon_url = icon_url
  @icon_black_url = icon_black_url
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/kombo/models/shared/assets.rb', line 30

def ==(other)
  return false unless other.is_a? self.class
  return false unless @logo_url == other.logo_url
  return false unless @icon_url == other.icon_url
  return false unless @icon_black_url == other.icon_black_url
  true
end