Class: CephRuby::Lib::Rados::MonitorStatStruct

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/ceph-ruby/lib/rados.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#to_hashObject



115
116
117
118
# File 'lib/ceph-ruby/lib/rados.rb', line 115

def to_hash
  return {} if members.empty?
  Hash[* members.collect { |m| [m, self[m]] }.flatten!]
end