Class: Rubyfox::Client::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyfox/client/config.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Config

Returns a new instance of Config.



4
5
6
# File 'lib/rubyfox/client/config.rb', line 4

def initialize(options={})
  @options = options
end

Instance Method Details

#bluebox?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/rubyfox/client/config.rb', line 24

def bluebox?
  false
end

#bluebox_portObject



28
29
# File 'lib/rubyfox/client/config.rb', line 28

def bluebox_port
end

#debug?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/rubyfox/client/config.rb', line 16

def debug?
  @options[:debug] || false
end

#hostObject



8
9
10
# File 'lib/rubyfox/client/config.rb', line 8

def host
  @options[:host] || "127.0.0.1"
end

#portObject



12
13
14
# File 'lib/rubyfox/client/config.rb', line 12

def port
  @options[:port] || 9933
end

#udp?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/rubyfox/client/config.rb', line 20

def udp?
  false
end