Class: InternationalPostcodeApi::Configuration
- Inherits:
-
Object
- Object
- InternationalPostcodeApi::Configuration
- Defined in:
- lib/international_postcode_api.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_uri ⇒ Object
Returns the value of attribute base_uri.
-
#dynamic_endpoints ⇒ Object
Returns the value of attribute dynamic_endpoints.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#session_token ⇒ Object
readonly
Returns the value of attribute session_token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_key ⇒ Object
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_uri ⇒ Object
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_endpoints ⇒ Object
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_key ⇒ Object
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_token ⇒ Object (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 |