Class: RMC::Item::Host

Inherits:
Object
  • Object
show all
Defined in:
lib/rmc/item/host.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#connectionObject

Returns the value of attribute connection.



6
7
8
# File 'lib/rmc/item/host.rb', line 6

def connection
  @connection
end

#domainObject (readonly)

Returns the value of attribute domain.



9
10
11
# File 'lib/rmc/item/host.rb', line 9

def domain
  @domain
end

#iqnsObject (readonly)

Returns the value of attribute iqns.



11
12
13
# File 'lib/rmc/item/host.rb', line 11

def iqns
  @iqns
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/rmc/item/host.rb', line 8

def name
  @name
end