Class: Stripe::TestHelpers::TestClock::AdvanceParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::TestClock::AdvanceParams
- Defined in:
- lib/stripe/resources/test_helpers/test_clock.rb
Instance Attribute Summary collapse
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#frozen_time ⇒ Object
The time to advance the test clock.
Instance Method Summary collapse
-
#initialize(expand: nil, frozen_time: nil) ⇒ AdvanceParams
constructor
A new instance of AdvanceParams.
Methods inherited from RequestParams
Constructor Details
#initialize(expand: nil, frozen_time: nil) ⇒ AdvanceParams
Returns a new instance of AdvanceParams.
70 71 72 73 |
# File 'lib/stripe/resources/test_helpers/test_clock.rb', line 70 def initialize(expand: nil, frozen_time: nil) @expand = @frozen_time = frozen_time end |
Instance Attribute Details
#expand ⇒ Object
Specifies which fields in the response should be expanded.
66 67 68 |
# File 'lib/stripe/resources/test_helpers/test_clock.rb', line 66 def @expand end |
#frozen_time ⇒ Object
The time to advance the test clock. Must be after the test clock’s current frozen time. Cannot be more than two intervals in the future from the shortest subscription in this test clock. If there are no subscriptions in this test clock, it cannot be more than two years in the future.
68 69 70 |
# File 'lib/stripe/resources/test_helpers/test_clock.rb', line 68 def frozen_time @frozen_time end |