Method: Fleet#initialize
- Defined in:
- lib/fleet.rb
#initialize(options = {}) ⇒ Fleet
Returns a new instance of Fleet.
9 10 11 12 13 14 15 16 17 |
# File 'lib/fleet.rb', line 9 def initialize( = {}) @host = [:host] || "127.0.0.1" @port = [:port] || 3400 @timeout = [:timeout] || 5 @password = [:password] @json_encoder = Yajl::Encoder @json_parser = Yajl::Parser connect end |