Class: Idcf::Ilb::Resources::Config

Inherits:
Base
  • Object
show all
Defined in:
lib/idcf/ilb/resources/config.rb

Overview

Config resource class

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

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

#inspectObject



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

#refreshConfig

Refresh this config

Returns:



9
10
11
12
# File 'lib/idcf/ilb/resources/config.rb', line 9

def refresh
  self.attributes = client.get_config(id).body
  self
end