Sha256: f03c566eb4caab41e8bc17d7316b1e4fcaeb93f68673d0794ef05ce9c2425b0d

Contents?: true

Size: 459 Bytes

Versions: 5

Compression:

Stored size: 459 Bytes

Contents

class NexaasID::Client::Base
  def initialize(config = nil)
    @config = config || NexaasID.default_configuration
  end

  # Provides a SignUp resource.
  # @return [NexaasID::Resources::SignUp] the signup resource.
  def sign_up
    NexaasID::Resources::SignUp.new(api_token, config)
  end

  protected

  attr_accessor :config

  def api_token
    raise NotImplementedError
  end

  def client
    @client ||= NexaasID::Client::OAuth.new(config)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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