Class: Afterbanks::User

Inherits:
Resource show all
Defined in:
lib/afterbanks/resources/user.rb

Class Method Summary collapse

Methods inherited from Resource

fields_information, #fields_information, has_fields, #initialize

Constructor Details

This class inherits a constructor from Afterbanks::Resource

Class Method Details

.getObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/afterbanks/resources/user.rb', line 10

def get
  response, debug_id = Afterbanks.api_call(
    method: :post,
    path:   '/me/',
    params: {
      servicekey: Afterbanks.configuration.servicekey
    }
  )

  Response.new(
    result:   new(response),
    debug_id: debug_id
  )
end