Class: RocketTracker::Configuration
- Inherits:
-
Object
- Object
- RocketTracker::Configuration
- Defined in:
- lib/rocket_tracker/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#envs ⇒ Object
Returns the value of attribute envs.
-
#host ⇒ Object
Returns the value of attribute host.
-
#ip ⇒ Object
Returns the value of attribute ip.
- #js_endpoint ⇒ Object
-
#js_key ⇒ Object
Returns the value of attribute js_key.
-
#port ⇒ Object
Returns the value of attribute port.
-
#project ⇒ Object
Returns the value of attribute project.
-
#proto ⇒ Object
Returns the value of attribute proto.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 |
# File 'lib/rocket_tracker/configuration.rb', line 12 def initialize @host = "rtrack.ru" @proto = "http" @port = 80 @envs = %w(development production) end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/rocket_tracker/configuration.rb', line 3 def api_key @api_key end |
#envs ⇒ Object
Returns the value of attribute envs.
9 10 11 |
# File 'lib/rocket_tracker/configuration.rb', line 9 def envs @envs end |
#host ⇒ Object
Returns the value of attribute host.
5 6 7 |
# File 'lib/rocket_tracker/configuration.rb', line 5 def host @host end |
#ip ⇒ Object
Returns the value of attribute ip.
6 7 8 |
# File 'lib/rocket_tracker/configuration.rb', line 6 def ip @ip end |
#js_endpoint ⇒ Object
20 21 22 |
# File 'lib/rocket_tracker/configuration.rb', line 20 def js_endpoint @js_endpoint ||= get_endpoint end |
#js_key ⇒ Object
Returns the value of attribute js_key.
4 5 6 |
# File 'lib/rocket_tracker/configuration.rb', line 4 def js_key @js_key end |
#port ⇒ Object
Returns the value of attribute port.
8 9 10 |
# File 'lib/rocket_tracker/configuration.rb', line 8 def port @port end |
#project ⇒ Object
Returns the value of attribute project.
10 11 12 |
# File 'lib/rocket_tracker/configuration.rb', line 10 def project @project end |
#proto ⇒ Object
Returns the value of attribute proto.
7 8 9 |
# File 'lib/rocket_tracker/configuration.rb', line 7 def proto @proto end |