Class: Phearb::Configuration
- Inherits:
-
Object
- Object
- Phearb::Configuration
- Defined in:
- lib/phearb/configuration.rb
Constant Summary collapse
- DEFAULT_HOST =
'localhost'
- DEFAULT_PORT =
8100
- DEFAULT_TIMEOUT =
60
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 |
# File 'lib/phearb/configuration.rb', line 11 def initialize @host = DEFAULT_HOST @port = DEFAULT_PORT @timeout = DEFAULT_TIMEOUT end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/phearb/configuration.rb', line 3 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
4 5 6 |
# File 'lib/phearb/configuration.rb', line 4 def port @port end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/phearb/configuration.rb', line 5 def timeout @timeout end |