Class: Clerk::Models::Components::CommercePayerResponse

Inherits:
Object
  • Object
show all
Includes:
Crystalline::MetadataFields
Defined in:
lib/clerk/models/components/commercepayerresponse.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(object:, id:, instance_id:, image_url: nil, created_at: nil, updated_at: nil, user_id: nil, first_name: nil, last_name: nil, email: nil, organization_id: nil, organization_name: nil) ⇒ CommercePayerResponse

Returns a new instance of CommercePayerResponse.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/clerk/models/components/commercepayerresponse.rb', line 41

def initialize(object:, id:, instance_id:, image_url: nil, created_at: nil, updated_at: nil, user_id: nil, first_name: nil, last_name: nil, email: nil, organization_id: nil, organization_name: nil)
  @object = object
  @id = id
  @instance_id = instance_id
  @image_url = image_url
  @created_at = created_at
  @updated_at = updated_at
  @user_id = user_id
  @first_name = first_name
  @last_name = last_name
  @email = email
  @organization_id = organization_id
  @organization_name = organization_name
end

Instance Method Details

#==(other) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/clerk/models/components/commercepayerresponse.rb', line 57

def ==(other)
  return false unless other.is_a? self.class
  return false unless @object == other.object
  return false unless @id == other.id
  return false unless @instance_id == other.instance_id
  return false unless @image_url == other.image_url
  return false unless @created_at == other.created_at
  return false unless @updated_at == other.updated_at
  return false unless @user_id == other.user_id
  return false unless @first_name == other.first_name
  return false unless @last_name == other.last_name
  return false unless @email == other.email
  return false unless @organization_id == other.organization_id
  return false unless @organization_name == other.organization_name
  true
end