Class: Hyperfocal::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



53
54
55
56
57
# File 'lib/hyperfocal.rb', line 53

def initialize
  @env = (ENV['RAILS_ENV'] || ENV['RACK_ENV'])
  @host = 'https://api.hyperfocal.io'.freeze
  @environments = %w[ production ].freeze
end

Instance Attribute Details

#app_idObject

Returns the value of attribute app_id.



48
49
50
# File 'lib/hyperfocal.rb', line 48

def app_id
  @app_id
end

#envObject (readonly)

Returns the value of attribute env.



50
51
52
# File 'lib/hyperfocal.rb', line 50

def env
  @env
end

#environmentsObject

Returns the value of attribute environments.



49
50
51
# File 'lib/hyperfocal.rb', line 49

def environments
  @environments
end

#hostObject (readonly)

Returns the value of attribute host.



51
52
53
# File 'lib/hyperfocal.rb', line 51

def host
  @host
end