Class: Databox::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/databox/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_hostObject

Returns the value of attribute push_host.



2
3
4
# File 'lib/databox/configuration.rb', line 2

def push_host
  @push_host
end

#push_tokenObject

Returns the value of attribute push_token.



2
3
4
# File 'lib/databox/configuration.rb', line 2

def push_token
  @push_token
end