Class: Clerk::Models::Components::CommerceSubscriptionItemPlan
- Inherits:
-
Object
- Object
- Clerk::Models::Components::CommerceSubscriptionItemPlan
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/commercesubscriptionitem_plan.rb
Overview
The associated plan.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, name:, fee:, product_id:, is_default:, is_recurring:, publicly_visible:, has_base_fee:, for_payer_type:, slug:, free_trial_enabled:, annual_monthly_fee: nil, annual_fee: nil, description: nil, avatar_url: nil, features: nil, free_trial_days: nil) ⇒ CommerceSubscriptionItemPlan
constructor
A new instance of CommerceSubscriptionItemPlan.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, name:, fee:, product_id:, is_default:, is_recurring:, publicly_visible:, has_base_fee:, for_payer_type:, slug:, free_trial_enabled:, annual_monthly_fee: nil, annual_fee: nil, description: nil, avatar_url: nil, features: nil, free_trial_days: nil) ⇒ CommerceSubscriptionItemPlan
Returns a new instance of CommerceSubscriptionItemPlan.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/clerk/models/components/commercesubscriptionitem_plan.rb', line 55 def initialize(object:, id:, name:, fee:, product_id:, is_default:, is_recurring:, publicly_visible:, has_base_fee:, for_payer_type:, slug:, free_trial_enabled:, annual_monthly_fee: nil, annual_fee: nil, description: nil, avatar_url: nil, features: nil, free_trial_days: nil) @object = object @id = id @name = name @fee = fee @product_id = product_id @is_default = is_default @is_recurring = is_recurring @publicly_visible = publicly_visible @has_base_fee = has_base_fee @for_payer_type = for_payer_type @slug = slug @free_trial_enabled = free_trial_enabled @annual_monthly_fee = annual_monthly_fee @annual_fee = annual_fee @description = description @avatar_url = avatar_url @features = features @free_trial_days = free_trial_days end |
Instance Method Details
#==(other) ⇒ Object
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/clerk/models/components/commercesubscriptionitem_plan.rb', line 77 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 @name == other.name return false unless @fee == other.fee return false unless @product_id == other.product_id return false unless @is_default == other.is_default return false unless @is_recurring == other.is_recurring return false unless @publicly_visible == other.publicly_visible return false unless @has_base_fee == other.has_base_fee return false unless @for_payer_type == other.for_payer_type return false unless @slug == other.slug return false unless @free_trial_enabled == other.free_trial_enabled return false unless @annual_monthly_fee == other.annual_monthly_fee return false unless @annual_fee == other.annual_fee return false unless @description == other.description return false unless @avatar_url == other.avatar_url return false unless @features == other.features return false unless @free_trial_days == other.free_trial_days true end |