Class: InternationalPostcodeApi::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/international_postcode_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



19
20
21
22
23
# File 'lib/international_postcode_api.rb', line 19

def initialize
  @base_uri = 'https://api.postcode.eu/international/v1/'
  @session_token = SecureRandom.hex(8)
  @dynamic_endpoints = true
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



16
17
18
# File 'lib/international_postcode_api.rb', line 16

def api_key
  @api_key
end

#base_uriObject

Returns the value of attribute base_uri.



16
17
18
# File 'lib/international_postcode_api.rb', line 16

def base_uri
  @base_uri
end

#dynamic_endpointsObject

Returns the value of attribute dynamic_endpoints.



16
17
18
# File 'lib/international_postcode_api.rb', line 16

def dynamic_endpoints
  @dynamic_endpoints
end

#secret_keyObject

Returns the value of attribute secret_key.



16
17
18
# File 'lib/international_postcode_api.rb', line 16

def secret_key
  @secret_key
end

#session_tokenObject (readonly)

Returns the value of attribute session_token.



17
18
19
# File 'lib/international_postcode_api.rb', line 17

def session_token
  @session_token
end