Class: OpenApiSDK::Models::Operations::TrackSaleCustomer

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/open_api_sdk/models/operations/tracksale_customer.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, name: nil, email: nil, avatar: nil, external_id: nil) ⇒ TrackSaleCustomer

Returns a new instance of TrackSaleCustomer.



27
28
29
30
31
32
33
# File 'lib/open_api_sdk/models/operations/tracksale_customer.rb', line 27

def initialize(id:, name: nil, email: nil, avatar: nil, external_id: nil)
  @id = id
  @name = name
  @email = email
  @avatar = avatar
  @external_id = external_id
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/open_api_sdk/models/operations/tracksale_customer.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @name == other.name
  return false unless @email == other.email
  return false unless @avatar == other.avatar
  return false unless @external_id == other.external_id
  true
end