Class: Dcmgr::Rpc::StaContext
- Inherits:
-
Object
- Object
- Dcmgr::Rpc::StaContext
- Defined in:
- lib/dcmgr/rpc/sta_handler.rb
Instance Method Summary collapse
- #destination ⇒ Object
-
#initialize(stahandler) ⇒ StaContext
constructor
A new instance of StaContext.
- #node ⇒ Object
- #snapshot ⇒ Object
- #snapshot_id ⇒ Object
- #volume ⇒ Object
- #volume_id ⇒ Object
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
#destination ⇒ Object
226 227 228 |
# File 'lib/dcmgr/rpc/sta_handler.rb', line 226 def destination @sta.instance_variable_get(:@destination) end |
#node ⇒ Object
238 239 240 |
# File 'lib/dcmgr/rpc/sta_handler.rb', line 238 def node @sta.instance_variable_get(:@node) end |
#snapshot ⇒ Object
234 235 236 |
# File 'lib/dcmgr/rpc/sta_handler.rb', line 234 def snapshot @sta.instance_variable_get(:@snapshot) end |
#snapshot_id ⇒ Object
222 223 224 |
# File 'lib/dcmgr/rpc/sta_handler.rb', line 222 def snapshot_id @sta.instance_variable_get(:@snapshot_id) end |
#volume ⇒ Object
230 231 232 |
# File 'lib/dcmgr/rpc/sta_handler.rb', line 230 def volume @sta.instance_variable_get(:@volume) end |
#volume_id ⇒ Object
218 219 220 |
# File 'lib/dcmgr/rpc/sta_handler.rb', line 218 def volume_id @sta.instance_variable_get(:@volume_id) end |