Class: PCPEasy::PMAPI::PmResult

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/pcp_easy/pmapi/pm_result.rb

Instance Method Summary collapse

Instance Method Details

#numpmidObject



20
21
22
# File 'lib/pcp_easy/pmapi/pm_result.rb', line 20

def numpmid
  self[:numpmid]
end

#timestampObject



24
25
26
# File 'lib/pcp_easy/pmapi/pm_result.rb', line 24

def timestamp
  self[:timestamp]
end

#vsetObject

pointer to start of PmValueSet



14
15
16
17
18
# File 'lib/pcp_easy/pmapi/pm_result.rb', line 14

def vset
  numpmid.times.collect do |n|
    PmValueSet.new((start_of_vset + FFI::Pointer.size * n).get_pointer(0))
  end
end