Class: Stripe::Terminal::ReaderCollectInputsParams::Input
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Terminal::ReaderCollectInputsParams::Input
- Defined in:
- lib/stripe/params/terminal/reader_collect_inputs_params.rb
Defined Under Namespace
Classes: CustomText, Selection, Toggle
Instance Attribute Summary collapse
-
#custom_text ⇒ Object
Customize the text which will be displayed while collecting this input.
-
#required ⇒ Object
Indicate that this input is required, disabling the skip button.
-
#selection ⇒ Object
Options for the ‘selection` input.
-
#toggles ⇒ Object
List of toggles to be displayed and customization for the toggles.
-
#type ⇒ Object
The type of input to collect.
Instance Method Summary collapse
-
#initialize(custom_text: nil, required: nil, selection: nil, toggles: nil, type: nil) ⇒ Input
constructor
A new instance of Input.
Methods inherited from RequestParams
Constructor Details
#initialize(custom_text: nil, required: nil, selection: nil, toggles: nil, type: nil) ⇒ Input
Returns a new instance of Input.
74 75 76 77 78 79 80 |
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 74 def initialize(custom_text: nil, required: nil, selection: nil, toggles: nil, type: nil) @custom_text = custom_text @required = required @selection = selection @toggles = toggles @type = type end |
Instance Attribute Details
#custom_text ⇒ Object
Customize the text which will be displayed while collecting this input
64 65 66 |
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 64 def custom_text @custom_text end |
#required ⇒ Object
Indicate that this input is required, disabling the skip button
66 67 68 |
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 66 def required @required end |
#selection ⇒ Object
Options for the ‘selection` input
68 69 70 |
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 68 def selection @selection end |
#toggles ⇒ Object
List of toggles to be displayed and customization for the toggles
70 71 72 |
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 70 def toggles @toggles end |
#type ⇒ Object
The type of input to collect
72 73 74 |
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 72 def type @type end |