Class: LeoManager::Status::StorageStat

Inherits:
Object
  • Object
show all
Defined in:
lib/leo_manager_models.rb

Overview

Storage Status

Constant Summary collapse

@@properties =
[:replication_msgs, :sync_vnode_msgs, :rebalance_msgs]

Instance Method Summary collapse

Constructor Details

#initialize(h) ⇒ StorageStat

Returns a new instance of StorageStat.



126
127
128
129
130
# File 'lib/leo_manager_models.rb', line 126

def initialize(h)
  @@properties.each do |property|
    instance_variable_set("@#{property}", h[property])
  end
end