Class: AfterbanksPSD2::User

Inherits:
Resource show all
Defined in:
lib/afterbanks_psd2/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 AfterbanksPSD2::Resource

Class Method Details

.getObject



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

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

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