Class: ChefLicensing::TUIEngine::TUIInteraction
- Inherits:
-
Object
- Object
- ChefLicensing::TUIEngine::TUIInteraction
- Defined in:
- lib/chef-licensing/tui_engine/tui_interaction.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#paths ⇒ Object
Returns the value of attribute paths.
-
#prompt_attributes ⇒ Object
Returns the value of attribute prompt_attributes.
-
#prompt_type ⇒ Object
Returns the value of attribute prompt_type.
-
#response_path_map ⇒ Object
Returns the value of attribute response_path_map.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ TUIInteraction
constructor
A new instance of TUIInteraction.
Constructor Details
#initialize(opts = {}) ⇒ TUIInteraction
Returns a new instance of TUIInteraction.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/chef-licensing/tui_engine/tui_interaction.rb', line 5 def initialize(opts = {}) @id = opts[:id] @messages = opts[:messages] @action = opts[:action] @prompt_type = opts[:prompt_type] || "say" @prompt_attributes = opts[:prompt_attributes] || {} @response_path_map = opts[:response_path_map] @paths = {} @description = opts[:description] || "" end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
4 5 6 |
# File 'lib/chef-licensing/tui_engine/tui_interaction.rb', line 4 def action @action end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/chef-licensing/tui_engine/tui_interaction.rb', line 4 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chef-licensing/tui_engine/tui_interaction.rb', line 4 def id @id end |
#messages ⇒ Object
Returns the value of attribute messages.
4 5 6 |
# File 'lib/chef-licensing/tui_engine/tui_interaction.rb', line 4 def @messages end |
#paths ⇒ Object
Returns the value of attribute paths.
4 5 6 |
# File 'lib/chef-licensing/tui_engine/tui_interaction.rb', line 4 def paths @paths end |
#prompt_attributes ⇒ Object
Returns the value of attribute prompt_attributes.
4 5 6 |
# File 'lib/chef-licensing/tui_engine/tui_interaction.rb', line 4 def prompt_attributes @prompt_attributes end |
#prompt_type ⇒ Object
Returns the value of attribute prompt_type.
4 5 6 |
# File 'lib/chef-licensing/tui_engine/tui_interaction.rb', line 4 def prompt_type @prompt_type end |
#response_path_map ⇒ Object
Returns the value of attribute response_path_map.
4 5 6 |
# File 'lib/chef-licensing/tui_engine/tui_interaction.rb', line 4 def response_path_map @response_path_map end |