Class: IscsiadmWrapper::Session

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

Instance Attribute Summary collapse

Attributes inherited from Node

#portal, #target

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Session

Returns a new instance of Session.



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

def initialize(args = {})
  super
  @id = args[:id]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end