Class: Ibanity::PontoConnect::UserInfo

Inherits:
OAuthResource
  • Object
show all
Defined in:
lib/ibanity/api/ponto_connect/user_info.rb

Class Method Summary collapse

Methods inherited from OAuthResource

create_by_uri, find_by_uri, #initialize

Constructor Details

This class inherits a constructor from Ibanity::OAuthResource

Class Method Details

.find(access_token:) ⇒ Object



4
5
6
7
# File 'lib/ibanity/api/ponto_connect/user_info.rb', line 4

def self.find(access_token:)
  uri = Ibanity.ponto_connect_api_schema["userinfo"]
  find_by_uri(uri: uri, customer_access_token: access_token)
end