Class: Hyperfocal::Configuration
- Inherits:
-
Object
- Object
- Hyperfocal::Configuration
- Defined in:
- lib/hyperfocal.rb
Instance Attribute Summary collapse
-
#app_id ⇒ Object
Returns the value of attribute app_id.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#environments ⇒ Object
Returns the value of attribute environments.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
60 61 62 63 64 |
# File 'lib/hyperfocal.rb', line 60 def initialize @env = (ENV['RAILS_ENV'] || ENV['RACK_ENV']) @host = 'https://api.hyperfocal.io'.freeze @environments = %w[ production ].freeze end |
Instance Attribute Details
#app_id ⇒ Object
Returns the value of attribute app_id.
55 56 57 |
# File 'lib/hyperfocal.rb', line 55 def app_id @app_id end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
57 58 59 |
# File 'lib/hyperfocal.rb', line 57 def env @env end |
#environments ⇒ Object
Returns the value of attribute environments.
56 57 58 |
# File 'lib/hyperfocal.rb', line 56 def environments @environments end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
58 59 60 |
# File 'lib/hyperfocal.rb', line 58 def host @host end |