Class: Tessera::Api::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/tessera/api/session.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.createObject



8
9
10
# File 'lib/tessera/api/session.rb', line 8

def self.create
  new.create
end

Instance Method Details

#createObject



12
13
14
15
# File 'lib/tessera/api/session.rb', line 12

def create
  response = Tessera::Request.new(:post, 'Session', credentials).send
  Tessera::Model::Session.new(response)
end