Class: Bob::Employee::VariablePayments
- Inherits:
-
API
- Object
- API
- Bob::Employee::VariablePayments
show all
- Defined in:
- lib/bob/api/employee/variable_payments.rb
Constant Summary
Constants inherited
from API
API::BASE_URL
Class Method Summary
collapse
Methods inherited from API
build_url, content_headers, create_csv, delete, get, headers, post, put
Class Method Details
.all(employee_id) ⇒ Object
6
7
8
9
|
# File 'lib/bob/api/employee/variable_payments.rb', line 6
def self.all(employee_id)
response = get("people/#{employee_id}/variable")
VariablePaymentParser.new(response).variable_payments
end
|
.create(employee_id, params = {}) ⇒ Object
11
12
13
|
# File 'lib/bob/api/employee/variable_payments.rb', line 11
def self.create(employee_id, params = {})
post("people/#{employee_id}/variable", params)
end
|