Class: Raven::Config
- Inherits:
-
Object
- Object
- Raven::Config
- Defined in:
- lib/rb_raven_api/config.rb
Overview
Config class used internally. Configure API calls using Raven.configure
Constant Summary collapse
- DEFAULT_HOST =
'https://api.raventools.com/api'
- DEFAULT_PORT =
80
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
- #host ⇒ Object readonly
- #port ⇒ Object readonly
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
20 21 22 23 |
# File 'lib/rb_raven_api/config.rb', line 20 def initialize @host = DEFAULT_HOST @port = DEFAULT_PORT end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
13 14 15 |
# File 'lib/rb_raven_api/config.rb', line 13 def api_key @api_key end |
#host ⇒ Object (readonly)
14 15 16 |
# File 'lib/rb_raven_api/config.rb', line 14 def host @host end |
#port ⇒ Object (readonly)
14 15 16 |
# File 'lib/rb_raven_api/config.rb', line 14 def port @port end |