Class: Idcf::Ilb::Resources::Config
- Defined in:
- lib/idcf/ilb/resources/config.rb
Overview
Config resource class
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #inspect ⇒ Object
-
#refresh ⇒ Config
Refresh this config.
Methods inherited from Base
class_name, generate_readers, inherited, #initialize, validator_class
Constructor Details
This class inherits a constructor from Idcf::Ilb::Resources::Base
Instance Method Details
#inspect ⇒ Object
14 15 16 17 |
# File 'lib/idcf/ilb/resources/config.rb', line 14 def inspect o_id = object_id "#<#{self.class}:0x%014x @protocol=#{frontend_protocol} @port=#{port} @id=#{id}>" % [o_id] end |
#refresh ⇒ Config
Refresh this config
9 10 11 12 |
# File 'lib/idcf/ilb/resources/config.rb', line 9 def refresh self.attributes = client.get_config(id).body self end |