class NexaasID::Configuration

Attributes

application_secret[RW]
application_token[RW]
url[RW]
user_agent[RW]

Public Class Methods

build() { |config| ... } click to toggle source
# File lib/nexaas_id/configuration.rb, line 5
def self.build
  config = new
  yield(config) if block_given?
  config
end
new() click to toggle source
# File lib/nexaas_id/configuration.rb, line 11
def initialize
  @url = 'https://id.nexaas.com'
  @user_agent = "Nexaas ID Ruby Client v#{NexaasID::VERSION}"
end

Public Instance Methods

url_for(path) click to toggle source
# File lib/nexaas_id/configuration.rb, line 16
def url_for(path)
  %(#{url.chomp('/')}#{path})
end