Class: Raven::Config

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_keyObject

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

#hostObject (readonly)



14
15
16
# File 'lib/rb_raven_api/config.rb', line 14

def host
  @host
end

#portObject (readonly)



14
15
16
# File 'lib/rb_raven_api/config.rb', line 14

def port
  @port
end