Class: LeoManager::Status::GatewayStat

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

Overview

Gateway Status

Constant Summary collapse

@@properties =
[:handler,
 :port,
 :ssl_port,
 :num_of_acceptors,
 :http_cache,
 :cache_workers,
 :cache_expire,
 :cache_ram_capacity,
 :cache_disc_capacity,
 :cache_disc_threshold_len,
 :cache_disc_dir_data,
 :cache_disc_dir_journal,
 :cache_max_content_len,
 :max_chunked_objs,
 :max_len_for_obj,
 :chunked_obj_len,
 :reading_chunked_obj_len,
 :threshold_of_chunk_len
]

Instance Method Summary collapse

Constructor Details

#initialize(h) ⇒ GatewayStat

Returns a new instance of GatewayStat.



183
184
185
186
187
# File 'lib/leo_manager_models.rb', line 183

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