Class: Clerk::Models::Components::BillingPriceResponse
- Inherits:
-
Object
- Object
- Clerk::Models::Components::BillingPriceResponse
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/billingpriceresponse.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, plan_id:, instance_id:, currency:, currency_symbol:, amount:, annual_monthly_amount:, fee:, annual_monthly_fee:, created_at:, description: nil) ⇒ BillingPriceResponse
constructor
A new instance of BillingPriceResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, plan_id:, instance_id:, currency:, currency_symbol:, amount:, annual_monthly_amount:, fee:, annual_monthly_fee:, created_at:, description: nil) ⇒ BillingPriceResponse
Returns a new instance of BillingPriceResponse.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/clerk/models/components/billingpriceresponse.rb', line 41 def initialize(object:, id:, plan_id:, instance_id:, currency:, currency_symbol:, amount:, annual_monthly_amount:, fee:, annual_monthly_fee:, created_at:, description: nil) @object = object @id = id @plan_id = plan_id @instance_id = instance_id @currency = currency @currency_symbol = currency_symbol @amount = amount @annual_monthly_amount = annual_monthly_amount @fee = fee @annual_monthly_fee = annual_monthly_fee @created_at = created_at @description = description 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/billingpriceresponse.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 @plan_id == other.plan_id return false unless @instance_id == other.instance_id return false unless @currency == other.currency return false unless @currency_symbol == other.currency_symbol return false unless @amount == other.amount return false unless @annual_monthly_amount == other.annual_monthly_amount return false unless @fee == other.fee return false unless @annual_monthly_fee == other.annual_monthly_fee return false unless @created_at == other.created_at return false unless @description == other.description true end |