Class: ChefLicensing::TUIEngine::TUIInteraction

Inherits:
Object
  • Object
show all
Defined in:
lib/chef-licensing/tui_engine/tui_interaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject

Returns the value of attribute action.



4
5
6
# File 'lib/chef-licensing/tui_engine/tui_interaction.rb', line 4

def action
  @action
end

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/chef-licensing/tui_engine/tui_interaction.rb', line 4

def description
  @description
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/chef-licensing/tui_engine/tui_interaction.rb', line 4

def id
  @id
end

#messagesObject

Returns the value of attribute messages.



4
5
6
# File 'lib/chef-licensing/tui_engine/tui_interaction.rb', line 4

def messages
  @messages
end

#pathsObject

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_attributesObject

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_typeObject

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_mapObject

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