Class: Rubyfox::Client::Config
- Inherits:
-
Object
- Object
- Rubyfox::Client::Config
- Defined in:
- lib/rubyfox/client/config.rb
Instance Method Summary collapse
- #bluebox? ⇒ Boolean
- #bluebox_port ⇒ Object
- #debug? ⇒ Boolean
- #host ⇒ Object
-
#initialize(options = {}) ⇒ Config
constructor
A new instance of Config.
- #port ⇒ Object
- #udp? ⇒ Boolean
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
#bluebox? ⇒ Boolean
24 25 26 |
# File 'lib/rubyfox/client/config.rb', line 24 def bluebox? false end |
#bluebox_port ⇒ Object
28 29 |
# File 'lib/rubyfox/client/config.rb', line 28 def bluebox_port end |
#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 |
#port ⇒ Object
12 13 14 |
# File 'lib/rubyfox/client/config.rb', line 12 def port @options[:port] || 9933 end |
#udp? ⇒ Boolean
20 21 22 |
# File 'lib/rubyfox/client/config.rb', line 20 def udp? false end |