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.
Instance Method Summary collapse
-
#initialize(charge_name:, amount:, interval:, currency_code: "USD") ⇒ BillingConfiguration
constructor
A new instance of BillingConfiguration.
Constructor Details
#initialize(charge_name:, amount:, interval:, currency_code: "USD") ⇒ BillingConfiguration
Returns a new instance of BillingConfiguration.
133 134 135 136 137 138 |
# File 'lib/shopify_app/configuration.rb', line 133 def initialize(charge_name:, amount:, interval:, currency_code: "USD") @charge_name = charge_name @amount = amount @currency_code = currency_code @interval = interval end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
129 130 131 |
# File 'lib/shopify_app/configuration.rb', line 129 def amount @amount end |
#charge_name ⇒ Object (readonly)
Returns the value of attribute charge_name.
128 129 130 |
# File 'lib/shopify_app/configuration.rb', line 128 def charge_name @charge_name end |
#currency_code ⇒ Object (readonly)
Returns the value of attribute currency_code.
130 131 132 |
# File 'lib/shopify_app/configuration.rb', line 130 def currency_code @currency_code end |
#interval ⇒ Object (readonly)
Returns the value of attribute interval.
131 132 133 |
# File 'lib/shopify_app/configuration.rb', line 131 def interval @interval end |