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.



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

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.



39
40
41
# File 'lib/stripe/services/test_helpers/test_clock_service.rb', line 39

def expand
  @expand
end

#frozen_timeObject

The initial frozen time for this test clock.



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

def frozen_time
  @frozen_time
end

#nameObject

The name for this test clock.



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

def name
  @name
end