Class: RubyHaze::NetworkConfig
- Inherits:
-
Object
- Object
- RubyHaze::NetworkConfig
- Includes:
- Mixins::Proxy
- Defined in:
- lib/rubyhaze/configs/network.rb
Instance Attribute Summary
Attributes included from Mixins::Proxy
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, options = nil) ⇒ NetworkConfig
constructor
A new instance of NetworkConfig.
Methods included from Mixins::Proxy
included, #method_missing, #respond_to?
Constructor Details
#initialize(name, options = nil) ⇒ NetworkConfig
Returns a new instance of NetworkConfig.
11 12 13 14 15 |
# File 'lib/rubyhaze/configs/network.rb', line 11 def initialize(name, = nil) @proxy_object = Java::ComHazelcastConfig::NetworkConfig.new ||= self.class. .each { |k,v| send "#{k}=", v } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RubyHaze::Mixins::Proxy
Class Method Details
.[](name) ⇒ Object
23 24 25 |
# File 'lib/rubyhaze/configs/network.rb', line 23 def [](name) RubyHaze.config.topic_config name.to_s end |
.default_options ⇒ Object
19 20 21 |
# File 'lib/rubyhaze/configs/network.rb', line 19 def {} end |