Class: GuestyAPI::Accounts

Inherits:
ResourceBase show all
Defined in:
lib/guesty_api/accounts.rb

Instance Method Summary collapse

Methods inherited from ResourceBase

#initialize

Constructor Details

This class inherits a constructor from GuestyAPI::ResourceBase

Instance Method Details

#retrieveObject



5
6
7
8
9
10
11
# File 'lib/guesty_api/accounts.rb', line 5

def retrieve
  response = @client.get url: '/accounts/me'

  check_response! response

  single_entity response
end