Class: Teapi::Configuration
- Inherits:
-
Object
- Object
- Teapi::Configuration
- Defined in:
- lib/teapi/configuration.rb
Constant Summary collapse
- OPTIONS =
[ :sync_key, :sync_secret, :host, :port, :secure, :http_open_timeout, :http_read_timeout].freeze
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#http_open_timeout ⇒ Object
Returns the value of attribute http_open_timeout.
-
#http_read_timeout ⇒ Object
Returns the value of attribute http_read_timeout.
-
#port ⇒ Object
Returns the value of attribute port.
-
#secure ⇒ Object
Returns the value of attribute secure.
-
#sync_key ⇒ Object
Returns the value of attribute sync_key.
-
#sync_secret ⇒ Object
Returns the value of attribute sync_secret.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 |
# File 'lib/teapi/configuration.rb', line 10 def initialize @port = 443 @secure = true @http_open_timeout = 10 @http_read_timeout = 10 end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
7 8 9 |
# File 'lib/teapi/configuration.rb', line 7 def host @host end |
#http_open_timeout ⇒ Object
Returns the value of attribute http_open_timeout.
8 9 10 |
# File 'lib/teapi/configuration.rb', line 8 def http_open_timeout @http_open_timeout end |
#http_read_timeout ⇒ Object
Returns the value of attribute http_read_timeout.
8 9 10 |
# File 'lib/teapi/configuration.rb', line 8 def http_read_timeout @http_read_timeout end |
#port ⇒ Object
Returns the value of attribute port.
7 8 9 |
# File 'lib/teapi/configuration.rb', line 7 def port @port end |
#secure ⇒ Object
Returns the value of attribute secure.
7 8 9 |
# File 'lib/teapi/configuration.rb', line 7 def secure @secure end |
#sync_key ⇒ Object
Returns the value of attribute sync_key.
7 8 9 |
# File 'lib/teapi/configuration.rb', line 7 def sync_key @sync_key end |
#sync_secret ⇒ Object
Returns the value of attribute sync_secret.
7 8 9 |
# File 'lib/teapi/configuration.rb', line 7 def sync_secret @sync_secret end |