Class: IscsiadmWrapper::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/iscsiadm/node.rb

Direct Known Subclasses

Session

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Node

Returns a new instance of Node.



8
9
10
11
# File 'lib/iscsiadm/node.rb', line 8

def initialize(args = {})
  @portal = Portal.parse(args[:portal])
  @target = args[:target]
end

Instance Attribute Details

#portalObject (readonly)

Returns the value of attribute portal.



6
7
8
# File 'lib/iscsiadm/node.rb', line 6

def portal
  @portal
end

#targetObject (readonly)

Returns the value of attribute target.



6
7
8
# File 'lib/iscsiadm/node.rb', line 6

def target
  @target
end