Class: Pessoa

Inherits:
Object
  • Object
show all
Defined in:
lib/api_sig/client.rb

Class Method Summary collapse

Class Method Details

.id_pessoa(id) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/api_sig/client.rb', line 8

def self.id_pessoa(id)
  begin
    JSON.parse(RestClient.get("#{API_URL}/pessoa/id_pessoa/#{id}", {accept: :json}).body).first
  rescue => ex
    ex
  end
end