Class: Targetdata::Api::Pf

Inherits:
Object
  • Object
show all
Includes:
Auth, Requester
Defined in:
lib/targetdata/api/pf.rb

Instance Method Summary collapse

Methods included from Requester

#get_person

Methods included from Auth

#token

Constructor Details

#initialize(cpf) ⇒ Pf

Returns a new instance of Pf.



7
8
9
# File 'lib/targetdata/api/pf.rb', line 7

def initialize cpf
  @cpf = cpf
end

Instance Method Details

#personObject



11
12
13
14
# File 'lib/targetdata/api/pf.rb', line 11

def person
  response = get_person
  Entities::Person.new hash_person(response.body.to_s)
end