Class: JobTick::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
# File 'lib/jobtick/configuration.rb', line 7

def initialize
  @endpoint    = "https://api.jobtick.app/v1"
  @environment = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "production"
  @enabled     = @environment == "production"
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



5
6
7
# File 'lib/jobtick/configuration.rb', line 5

def api_key
  @api_key
end

#enabledObject

Returns the value of attribute enabled.



5
6
7
# File 'lib/jobtick/configuration.rb', line 5

def enabled
  @enabled
end

#endpointObject

Returns the value of attribute endpoint.



5
6
7
# File 'lib/jobtick/configuration.rb', line 5

def endpoint
  @endpoint
end

#environmentObject

Returns the value of attribute environment.



5
6
7
# File 'lib/jobtick/configuration.rb', line 5

def environment
  @environment
end