Class: Velocity::Api::People

Inherits:
Base
  • Object
show all
Defined in:
lib/velocity/api/people.rb

Constant Summary

Constants inherited from Base

Base::PAGE_SIZE

Instance Attribute Summary

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods inherited from Base

#get, #initialize, #post, #put

Constructor Details

This class inherits a constructor from Velocity::Api::Base

Instance Method Details

#fetchObject



4
5
6
# File 'lib/velocity/api/people.rb', line 4

def fetch
  get("/people")
end

#updateObject



8
9
10
# File 'lib/velocity/api/people.rb', line 8

def update
  put("/people/#{args.fetch(:id)}", body)
end