Class: RMC::Item::Host
- Inherits:
-
Object
- Object
- RMC::Item::Host
- Defined in:
- lib/rmc/item/host.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
Returns the value of attribute connection.
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#iqns ⇒ Object
readonly
Returns the value of attribute iqns.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(connection, data) ⇒ Host
constructor
A new instance of Host.
Constructor Details
#initialize(connection, data) ⇒ Host
Returns a new instance of Host.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/rmc/item/host.rb', line 13 def initialize(connection, data) @connection = connection @name = data['name'] @domains = data['domain'] @iqns = data['iqns'] end |
Instance Attribute Details
#connection ⇒ Object
Returns the value of attribute connection.
6 7 8 |
# File 'lib/rmc/item/host.rb', line 6 def connection @connection end |
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
9 10 11 |
# File 'lib/rmc/item/host.rb', line 9 def domain @domain end |
#iqns ⇒ Object (readonly)
Returns the value of attribute iqns.
11 12 13 |
# File 'lib/rmc/item/host.rb', line 11 def iqns @iqns end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/rmc/item/host.rb', line 8 def name @name end |