Class: Kounta::Person

Inherits:
Resource
  • Object
show all
Defined in:
lib/kounta/person.rb

Instance Method Summary collapse

Methods inherited from Resource

#client, coerce, has_many, has_one, #ignored_properties, #initialize, #new?, #save!, #to_hash

Constructor Details

This class inherits a constructor from Kounta::Resource

Instance Method Details

#nameObject



17
18
19
# File 'lib/kounta/person.rb', line 17

def name
	"#{first_name} #{last_name}"
end

#resource_pathObject



21
22
23
# File 'lib/kounta/person.rb', line 21

def resource_path
	{companies: company_id, people: id}
end