Class: Databox::Configuration
- Inherits:
-
Object
- Object
- Databox::Configuration
- Defined in:
- lib/databox/configuration.rb
Instance Attribute Summary collapse
-
#push_host ⇒ Object
Returns the value of attribute push_host.
-
#push_token ⇒ Object
Returns the value of attribute push_token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
4 5 6 7 |
# File 'lib/databox/configuration.rb', line 4 def initialize @push_host ||= 'https://push.databox.com' @push_token ||= ENV['DATABOX_PUSH_TOKEN'] end |
Instance Attribute Details
#push_host ⇒ Object
Returns the value of attribute push_host.
2 3 4 |
# File 'lib/databox/configuration.rb', line 2 def push_host @push_host end |
#push_token ⇒ Object
Returns the value of attribute push_token.
2 3 4 |
# File 'lib/databox/configuration.rb', line 2 def push_token @push_token end |