Class: Dawn::User

Inherits:
Object
  • Object
show all
Includes:
BaseApi
Defined in:
lib/dawn/api/login.rb

Class Method Summary collapse

Methods included from BaseApi

included

Methods included from BaseApi::Extension

#json_request, #request

Class Method Details

.login(options = {}) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/dawn/api/login.rb', line 8

def self.(options={})
  json_request(
    expects: 200,
    method: :post,
    path: '/login',
    body: options.to_json
  )
end