Class: HasOffersV3::Employee

Inherits:
Base
  • Object
show all
Defined in:
lib/hasoffersv3/employee.rb

Instance Method Summary collapse

Methods inherited from Base

#client, client, #get_request, #initialize, #make_request, method_missing, #post_request, #requires!, #target, target

Constructor Details

This class inherits a constructor from HasOffersV3::Base

Instance Method Details

#find_all(params = {}) ⇒ Object



3
4
5
# File 'lib/hasoffersv3/employee.rb', line 3

def find_all(params = {})
  post_request 'findAll', params
end

#find_all_by_ids(params = {}) ⇒ Object



7
8
9
10
# File 'lib/hasoffersv3/employee.rb', line 7

def find_all_by_ids(params = {})
  requires! params, [:ids]
  post_request 'findAllByIds', params
end

#find_by_id(params = {}) ⇒ Object



12
13
14
15
# File 'lib/hasoffersv3/employee.rb', line 12

def find_by_id(params = {})
  requires! params, [:id]
  post_request 'findById', params
end