Class: Stripe::Terminal::Reader::CollectInputsParams::Input::Selection

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/terminal/reader.rb

Defined Under Namespace

Classes: Choice

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(choices: nil) ⇒ Selection

Returns a new instance of Selection.



629
630
631
# File 'lib/stripe/resources/terminal/reader.rb', line 629

def initialize(choices: nil)
  @choices = choices
end

Instance Attribute Details

#choicesObject

List of choices for the ‘selection` input



627
628
629
# File 'lib/stripe/resources/terminal/reader.rb', line 627

def choices
  @choices
end