Class: Clerk::Models::Components::Payer
- Inherits:
-
Object
- Object
- Clerk::Models::Components::Payer
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/payer.rb
Overview
The payer associated with this subscription.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, instance_id:, first_name:, last_name:, email:, image_url:, created_at:, updated_at:, user_id: nil, organization_id: nil, organization_name: nil) ⇒ Payer
constructor
A new instance of Payer.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, instance_id:, first_name:, last_name:, email:, image_url:, created_at:, updated_at:, user_id: nil, organization_id: nil, organization_name: nil) ⇒ Payer
Returns a new instance of Payer.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/clerk/models/components/payer.rb', line 41 def initialize(object:, id:, instance_id:, first_name:, last_name:, email:, image_url:, created_at:, updated_at:, user_id: nil, organization_id: nil, organization_name: nil) @object = object @id = id @instance_id = instance_id @first_name = first_name @last_name = last_name @email = email @image_url = image_url @created_at = created_at @updated_at = updated_at @user_id = user_id @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/payer.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 @first_name == other.first_name return false unless @last_name == other.last_name return false unless @email == other.email 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 @organization_id == other.organization_id return false unless @organization_name == other.organization_name true end |