Class: PBS::Torque::BatchStatus
- Inherits:
-
FFI::ManagedStruct
- Object
- FFI::ManagedStruct
- PBS::Torque::BatchStatus
- Defined in:
- lib/pbs/torque.rb
Overview
Struct for status of batch
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.release(ptr) ⇒ Object
152 153 154 |
# File 'lib/pbs/torque.rb', line 152 def self.release(ptr) pbs_statfree(ptr) end |
Instance Method Details
#to_a ⇒ Object
156 157 158 159 160 161 162 163 164 |
# File 'lib/pbs/torque.rb', line 156 def to_a ary = [] batch = self until batch.to_ptr.null? ary << {name: batch[:name], attribs: batch[:attribs].to_hash} batch = batch[:next] end ary end |