Class: Soapstone::UI::Prompts::SelectAnswer
- Inherits:
-
Object
- Object
- Soapstone::UI::Prompts::SelectAnswer
- Defined in:
- lib/soapstone/ui/prompts/select_answer.rb
Instance Attribute Summary collapse
-
#emoji ⇒ Object
readonly
Returns the value of attribute emoji.
-
#help ⇒ Object
readonly
Returns the value of attribute help.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name:, value:, emoji: nil, help: nil) ⇒ SelectAnswer
constructor
A new instance of SelectAnswer.
Constructor Details
#initialize(name:, value:, emoji: nil, help: nil) ⇒ SelectAnswer
Returns a new instance of SelectAnswer.
2 3 4 5 6 7 |
# File 'lib/soapstone/ui/prompts/select_answer.rb', line 2 def initialize(name:, value:, emoji: nil, help: nil) @name = name @emoji = emoji @value = value @help = help end |
Instance Attribute Details
#emoji ⇒ Object (readonly)
Returns the value of attribute emoji.
9 10 11 |
# File 'lib/soapstone/ui/prompts/select_answer.rb', line 9 def emoji @emoji end |
#help ⇒ Object (readonly)
Returns the value of attribute help.
9 10 11 |
# File 'lib/soapstone/ui/prompts/select_answer.rb', line 9 def help @help end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/soapstone/ui/prompts/select_answer.rb', line 9 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
9 10 11 |
# File 'lib/soapstone/ui/prompts/select_answer.rb', line 9 def value @value end |