class Postnord::Config

Public Class Methods

api_endpoint() click to toggle source
# File lib/postnord/config.rb, line 12
def self.api_endpoint
  (defined? POSTNORD_API_ENDPOINT) ? POSTNORD_API_ENDPOINT : 'https://api2.postnord.com/rest'
end
api_key() click to toggle source
# File lib/postnord/config.rb, line 4
def self.api_key
  (defined? POSTNORD_API_KEY) ? POSTNORD_API_KEY : ''
end
api_version() click to toggle source
# File lib/postnord/config.rb, line 8
def self.api_version
  (defined? POSTNORD_API_VERSION) ? POSTNORD_API_VERSION : 'v1'
end
locale() click to toggle source
# File lib/postnord/config.rb, line 16
def self.locale
  (defined? POSTNORD_LOCALE) ? POSTNORD_LOCALE : 'en'
end
return_type() click to toggle source
# File lib/postnord/config.rb, line 20
def self.return_type
  (defined? POSTNORD_RETURN_TYPE) ? POSTNORD_RETURN_TYPE : 'json'
end