Class: ShopifyApp::BillingConfiguration
- Inherits:
-
Object
- Object
- ShopifyApp::BillingConfiguration
- Defined in:
- lib/shopify_app/configuration.rb
Constant Summary collapse
- INTERVAL_ONE_TIME =
"ONE_TIME"- INTERVAL_EVERY_30_DAYS =
"EVERY_30_DAYS"- INTERVAL_ANNUAL =
"ANNUAL"
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#charge_name ⇒ Object
readonly
Returns the value of attribute charge_name.
-
#currency_code ⇒ Object
readonly
Returns the value of attribute currency_code.
-
#interval ⇒ Object
readonly
Returns the value of attribute interval.
-
#test ⇒ Object
readonly
Returns the value of attribute test.
-
#trial_days ⇒ Object
readonly
Returns the value of attribute trial_days.
Instance Method Summary collapse
-
#initialize(charge_name:, amount:, interval:, currency_code: "USD", trial_days: 0, test: !Rails.env.production?)) ⇒ BillingConfiguration
constructor
A new instance of BillingConfiguration.
Constructor Details
#initialize(charge_name:, amount:, interval:, currency_code: "USD", trial_days: 0, test: !Rails.env.production?)) ⇒ BillingConfiguration
Returns a new instance of BillingConfiguration.
180 181 182 183 184 185 186 187 |
# File 'lib/shopify_app/configuration.rb', line 180 def initialize(charge_name:, amount:, interval:, currency_code: "USD", trial_days: 0, test: !Rails.env.production?) @charge_name = charge_name @amount = amount @currency_code = currency_code @interval = interval @trial_days = trial_days @test = test end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
174 175 176 |
# File 'lib/shopify_app/configuration.rb', line 174 def amount @amount end |
#charge_name ⇒ Object (readonly)
Returns the value of attribute charge_name.
173 174 175 |
# File 'lib/shopify_app/configuration.rb', line 173 def charge_name @charge_name end |
#currency_code ⇒ Object (readonly)
Returns the value of attribute currency_code.
175 176 177 |
# File 'lib/shopify_app/configuration.rb', line 175 def currency_code @currency_code end |
#interval ⇒ Object (readonly)
Returns the value of attribute interval.
176 177 178 |
# File 'lib/shopify_app/configuration.rb', line 176 def interval @interval end |
#test ⇒ Object (readonly)
Returns the value of attribute test.
178 179 180 |
# File 'lib/shopify_app/configuration.rb', line 178 def test @test end |
#trial_days ⇒ Object (readonly)
Returns the value of attribute trial_days.
177 178 179 |
# File 'lib/shopify_app/configuration.rb', line 177 def trial_days @trial_days end |