Class: Rubyfox::Client::Config
- Inherits:
-
Object
- Object
- Rubyfox::Client::Config
- Defined in:
- lib/rubyfox/client/config.rb
Instance Method Summary collapse
- #debug? ⇒ Boolean
- #host ⇒ Object
- #http_port ⇒ Object
- #https_port ⇒ Object
-
#initialize(options = {}) ⇒ Config
constructor
A new instance of Config.
- #port ⇒ Object
- #zone ⇒ Object
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 = end |
Instance Method Details
#debug? ⇒ Boolean
16 17 18 |
# File 'lib/rubyfox/client/config.rb', line 16 def debug? @options[:debug] || false end |
#host ⇒ Object
8 9 10 |
# File 'lib/rubyfox/client/config.rb', line 8 def host @options[:host] || "127.0.0.1" end |
#http_port ⇒ Object
20 21 22 |
# File 'lib/rubyfox/client/config.rb', line 20 def http_port @options[:http_port] || 8080 end |
#https_port ⇒ Object
24 25 26 |
# File 'lib/rubyfox/client/config.rb', line 24 def https_port @options[:https_port] || 8443 end |
#port ⇒ Object
12 13 14 |
# File 'lib/rubyfox/client/config.rb', line 12 def port @options[:port] || 9933 end |
#zone ⇒ Object
28 29 30 |
# File 'lib/rubyfox/client/config.rb', line 28 def zone @options[:zone] || "" end |