Class: Soapstone::UI::Prompts::SelectAnswer

Inherits:
Object
  • Object
show all
Defined in:
lib/soapstone/ui/prompts/select_answer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#emojiObject (readonly)

Returns the value of attribute emoji.



9
10
11
# File 'lib/soapstone/ui/prompts/select_answer.rb', line 9

def emoji
  @emoji
end

#helpObject (readonly)

Returns the value of attribute help.



9
10
11
# File 'lib/soapstone/ui/prompts/select_answer.rb', line 9

def help
  @help
end

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/soapstone/ui/prompts/select_answer.rb', line 9

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



9
10
11
# File 'lib/soapstone/ui/prompts/select_answer.rb', line 9

def value
  @value
end