class NexaasID::Client::Base
Attributes
config[RW]
Public Class Methods
new(config = nil)
click to toggle source
# File lib/nexaas_id/client/base.rb, line 2 def initialize(config = nil) @config = config || NexaasID.default_configuration end
Public Instance Methods
sign_up()
click to toggle source
Provides a SignUp resource. @return [NexaasID::Resources::SignUp] the signup resource.
# File lib/nexaas_id/client/base.rb, line 8 def sign_up NexaasID::Resources::SignUp.new(api_token, config) end
Protected Instance Methods
api_token()
click to toggle source
# File lib/nexaas_id/client/base.rb, line 16 def api_token raise NotImplementedError end
client()
click to toggle source
# File lib/nexaas_id/client/base.rb, line 20 def client @client ||= NexaasID::Client::OAuth.new(config) end