Class: Stripe::Terminal::ReaderCollectInputsParams::Input::Toggle

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/terminal/reader_collect_inputs_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(default_value: nil, description: nil, title: nil) ⇒ Toggle

Returns a new instance of Toggle.



57
58
59
60
61
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 57

def initialize(default_value: nil, description: nil, title: nil)
  @default_value = default_value
  @description = description
  @title = title
end

Instance Attribute Details

#default_valueObject

The default value of the toggle. Can be ‘enabled` or `disabled`.



51
52
53
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 51

def default_value
  @default_value
end

#descriptionObject

The description which will be displayed for the toggle. Maximum 50 characters. At least one of title or description must be provided.



53
54
55
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 53

def description
  @description
end

#titleObject

The title which will be displayed for the toggle. Maximum 50 characters. At least one of title or description must be provided.



55
56
57
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 55

def title
  @title
end