Class: Stripe::Terminal::ReaderCollectInputsParams::Input::Selection::Choice

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(id: nil, style: nil, text: nil) ⇒ Choice

Returns a new instance of Choice.



35
36
37
38
39
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 35

def initialize(id: nil, style: nil, text: nil)
  @id = id
  @style = style
  @text = text
end

Instance Attribute Details

#idObject

The unique identifier for this choice



29
30
31
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 29

def id
  @id
end

#styleObject

The style of the button which will be shown for this choice



31
32
33
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 31

def style
  @style
end

#textObject

The text which will be shown on the button for this choice



33
34
35
# File 'lib/stripe/params/terminal/reader_collect_inputs_params.rb', line 33

def text
  @text
end