Class: Kombo::Models::Shared::Offer

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, remote_id: nil, status: nil) ⇒ Offer

Returns a new instance of Offer.



34
35
36
37
38
# File 'lib/kombo/models/shared/offer.rb', line 34

def initialize(id:, remote_id: nil, status: nil)
  @id = id
  @remote_id = remote_id
  @status = status
end

Instance Method Details

#==(other) ⇒ Object



41
42
43
44
45
46
47
# File 'lib/kombo/models/shared/offer.rb', line 41

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @remote_id == other.remote_id
  return false unless @status == other.status
  true
end