Class: Stripe::TestHelpers::TestClockService::CreateParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/test_helpers/test_clock_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(expand: nil, frozen_time: nil, name: nil) ⇒ CreateParams

Returns a new instance of CreateParams.



50
51
52
53
54
# File 'lib/stripe/services/test_helpers/test_clock_service.rb', line 50

def initialize(expand: nil, frozen_time: nil, name: nil)
  @expand = expand
  @frozen_time = frozen_time
  @name = name
end

Instance Attribute Details

#expandObject

Specifies which fields in the response should be expanded.



42
43
44
# File 'lib/stripe/services/test_helpers/test_clock_service.rb', line 42

def expand
  @expand
end

#frozen_timeObject

The initial frozen time for this test clock.



45
46
47
# File 'lib/stripe/services/test_helpers/test_clock_service.rb', line 45

def frozen_time
  @frozen_time
end

#nameObject

The name for this test clock.



48
49
50
# File 'lib/stripe/services/test_helpers/test_clock_service.rb', line 48

def name
  @name
end