Class: Stripe::V2::Billing::ContractCreateParams::BillingCycleAnchor::Config
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::ContractCreateParams::BillingCycleAnchor::Config
- Defined in:
- lib/stripe/params/v2/billing/contract_create_params.rb
Instance Attribute Summary collapse
-
#day_of_month ⇒ Object
Day of month (1-31).
-
#hour ⇒ Object
Hour of day in UTC (0-23).
-
#minute ⇒ Object
Minute of hour (0-59).
-
#month_of_year ⇒ Object
Month of year (1-12).
-
#second ⇒ Object
Second of minute (0-59).
Instance Method Summary collapse
-
#initialize(day_of_month: nil, hour: nil, minute: nil, month_of_year: nil, second: nil) ⇒ Config
constructor
A new instance of Config.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(day_of_month: nil, hour: nil, minute: nil, month_of_year: nil, second: nil) ⇒ Config
Returns a new instance of Config.
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 21 def initialize( day_of_month: nil, hour: nil, minute: nil, month_of_year: nil, second: nil ) @day_of_month = day_of_month @hour = hour @minute = minute @month_of_year = month_of_year @second = second end |
Instance Attribute Details
#day_of_month ⇒ Object
Day of month (1-31).
11 12 13 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 11 def day_of_month @day_of_month end |
#hour ⇒ Object
Hour of day in UTC (0-23).
13 14 15 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 13 def hour @hour end |
#minute ⇒ Object
Minute of hour (0-59).
15 16 17 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 15 def minute @minute end |
#month_of_year ⇒ Object
Month of year (1-12).
17 18 19 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 17 def month_of_year @month_of_year end |
#second ⇒ Object
Second of minute (0-59).
19 20 21 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 19 def second @second end |