Class: Dcmgr::Rpc::StaContext

Inherits:
Object
  • Object
show all
Defined in:
lib/dcmgr/rpc/sta_handler.rb

Instance Method Summary collapse

Constructor Details

#initialize(stahandler) ⇒ StaContext

Returns a new instance of StaContext.



213
214
215
216
# File 'lib/dcmgr/rpc/sta_handler.rb', line 213

def initialize(stahandler)
  raise "Invalid Class: #{stahandler}" unless stahandler.instance_of?(StaHandler)
  @sta = stahandler
end

Instance Method Details

#destinationObject



226
227
228
# File 'lib/dcmgr/rpc/sta_handler.rb', line 226

def destination
  @sta.instance_variable_get(:@destination)
end

#nodeObject



238
239
240
# File 'lib/dcmgr/rpc/sta_handler.rb', line 238

def node
  @sta.instance_variable_get(:@node)
end

#snapshotObject



234
235
236
# File 'lib/dcmgr/rpc/sta_handler.rb', line 234

def snapshot
  @sta.instance_variable_get(:@snapshot)
end

#snapshot_idObject



222
223
224
# File 'lib/dcmgr/rpc/sta_handler.rb', line 222

def snapshot_id
  @sta.instance_variable_get(:@snapshot_id)
end

#volumeObject



230
231
232
# File 'lib/dcmgr/rpc/sta_handler.rb', line 230

def volume
  @sta.instance_variable_get(:@volume)
end

#volume_idObject



218
219
220
# File 'lib/dcmgr/rpc/sta_handler.rb', line 218

def volume_id
  @sta.instance_variable_get(:@volume_id)
end