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:, is_default:, created_at:, supported_billing_periods:, fee: nil, annual_monthly_fee: nil, 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:, is_default:, created_at:, supported_billing_periods:, fee: nil, annual_monthly_fee: nil, description: nil) ⇒ BillingPriceResponse
Returns a new instance of BillingPriceResponse.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/clerk/models/components/billingpriceresponse.rb', line 45 def initialize(object:, id:, plan_id:, instance_id:, currency:, currency_symbol:, amount:, annual_monthly_amount:, is_default:, created_at:, supported_billing_periods:, fee: nil, annual_monthly_fee: nil, 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 @is_default = is_default @created_at = created_at @supported_billing_periods = supported_billing_periods @fee = fee @annual_monthly_fee = annual_monthly_fee @description = description end |
Instance Method Details
#==(other) ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/clerk/models/components/billingpriceresponse.rb', line 63 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 @is_default == other.is_default return false unless @created_at == other.created_at return false unless @supported_billing_periods == other.supported_billing_periods return false unless @fee == other.fee return false unless @annual_monthly_fee == other.annual_monthly_fee return false unless @description == other.description true end |