Class: PassaporteWeb::Client::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/passaporte_web/client/application.rb

Overview

PassaporteWeb Client for resources not owned by an Identity

API

Documentation:

Examples:

Inviting a new user:

client = PassaporteWeb::Client::Application.new
client..create(invited: '[email protected]')

Instance Method Summary collapse

Constructor Details

#initializeApplication

Returns a new instance of Application


12
13
14
# File 'lib/passaporte_web/client/application.rb', line 12

def initialize
  @tokens = {}
end

Instance Method Details

#sign_upPassaporteWeb::Resources::SignUp

Provides a SignUp resource.

Returns:


18
19
20
# File 'lib/passaporte_web/client/application.rb', line 18

def 
  PassaporteWeb::Resources::SignUp.new(token(:invite))
end