Class: AlPapi::Config

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

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_keyObject

Returns the value of attribute api_key.



11
12
13
# File 'lib/al_papi/config.rb', line 11

def api_key
  @api_key
end

#hostObject (readonly)



12
13
14
# File 'lib/al_papi/config.rb', line 12

def host
  @host
end

#portObject (readonly)



12
13
14
# File 'lib/al_papi/config.rb', line 12

def port
  @port
end