Sha256: ed2a9b7d0fed250f9e7b7bfed770bdba2f7b0bcc1e2aeed34a443405e7c5358c

Contents?: true

Size: 378 Bytes

Versions: 5

Compression:

Stored size: 378 Bytes

Contents

class NexaasID::Configuration

  attr_accessor :url, :user_agent, :application_token, :application_secret

  def self.build
    config = new
    yield(config) if block_given?
    config
  end

  def initialize
    @url = 'https://id.nexaas.com'
    @user_agent = "Nexaas ID Ruby Client v#{NexaasID::VERSION}"
  end

  def url_for(path)
    %(#{url.chomp('/')}#{path})
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nexaas_id-client-0.7.4 lib/nexaas_id/configuration.rb
nexaas_id-client-0.7.3 lib/nexaas_id/configuration.rb
nexaas_id-client-0.7.2 lib/nexaas_id/configuration.rb
nexaas_id-client-0.7.1 lib/nexaas_id/configuration.rb
nexaas_id-client-0.7.0 lib/nexaas_id/configuration.rb