Class: Stripe::Terminal::ReaderCollectInputsParams::Input::Toggle
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Terminal::ReaderCollectInputsParams::Input::Toggle
- Defined in:
- lib/stripe/params/terminal/reader_collect_inputs_params.rb
Instance Attribute Summary collapse
-
#default_value ⇒ Object
The default value of the toggle.
-
#description ⇒ Object
The description which will be displayed for the toggle.
-
#title ⇒ Object
The title which will be displayed for the toggle.
Instance Method Summary collapse
-
#initialize(default_value: nil, description: nil, title: nil) ⇒ Toggle
constructor
A new instance of Toggle.
Methods inherited from RequestParams
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_value ⇒ Object
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 |
#description ⇒ Object
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 |
#title ⇒ Object
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 |