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

#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

#http_portObject



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

def http_port
  @options[:http_port] || 8080
end

#https_portObject



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

def https_port
  @options[:https_port] || 8443
end

#portObject



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

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

#zoneObject



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

def zone
  @options[:zone] || ""
end