Class: Confer::Inventory::Host
- Inherits:
-
Object
- Object
- Confer::Inventory::Host
- Defined in:
- lib/confer/inventory.rb
Overview
Internal: Encapsulates a single host in an Inventory.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Public: A String containing the name of the host.
-
#options ⇒ Object
readonly
Public: A Hash containing the host options.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Host
constructor
Internal: Iniitalize a new Host with configuration.
Constructor Details
#initialize(*args) ⇒ Host
Internal: Iniitalize a new Host with configuration.
args - An array containing the name of the host and a Hash containing
the host options.
77 78 79 80 |
# File 'lib/confer/inventory.rb', line 77 def initialize(*args) @options = args. @name = args.first end |
Instance Attribute Details
#name ⇒ Object (readonly)
Public: A String containing the name of the host.
64 65 66 |
# File 'lib/confer/inventory.rb', line 64 def name @name end |
#options ⇒ Object (readonly)
Public: A Hash containing the host options.
69 70 71 |
# File 'lib/confer/inventory.rb', line 69 def @options end |