Class: RubyHaze::GroupConfig

Inherits:
Object
  • Object
show all
Includes:
Mixins::Proxy
Defined in:
lib/rubyhaze/configs/group.rb

Instance Attribute Summary

Attributes included from Mixins::Proxy

#proxy_object

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Mixins::Proxy

included, #method_missing, #respond_to?

Constructor Details

#initialize(options = {}) ⇒ GroupConfig

Returns a new instance of GroupConfig.



11
12
13
14
# File 'lib/rubyhaze/configs/group.rb', line 11

def initialize(options = {})
  @proxy_object = Java::ComHazelcastConfig::GroupConfig.new
  options.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

.default_optionsObject



18
19
20
# File 'lib/rubyhaze/configs/group.rb', line 18

def default_options
  { :username => 'dev', :password => 'dev-pass' }
end