Class: AlPapi::Config
- Inherits:
-
Object
- Object
- AlPapi::Config
- Defined in:
- lib/al_papi/config.rb
Overview
Config class used internally. Configure API calls using AlPapi.configure
Constant Summary collapse
- DEFAULT_HOST =
'http://api.authoritylabs.com'
- 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.
18 19 20 21 |
# File 'lib/al_papi/config.rb', line 18 def initialize @host = DEFAULT_HOST @port = DEFAULT_PORT end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
11 12 13 |
# File 'lib/al_papi/config.rb', line 11 def api_key @api_key end |
#host ⇒ Object (readonly)
12 13 14 |
# File 'lib/al_papi/config.rb', line 12 def host @host end |
#port ⇒ Object (readonly)
12 13 14 |
# File 'lib/al_papi/config.rb', line 12 def port @port end |