Class: EposNowClient::Resources::Staff
Instance Attribute Summary
Attributes inherited from BaseResource
#connection
Instance Method Summary
collapse
#initialize
Instance Method Details
#all(params = {}) ⇒ Object
6
7
8
|
# File 'lib/epos_now_client/resources/staff.rb', line 6
def all(params = {})
fetch_all_pages(params)
end
|
#create_staff(attributes) ⇒ Object
14
15
16
|
# File 'lib/epos_now_client/resources/staff.rb', line 14
def create_staff(attributes)
create(attributes)
end
|
#delete_staff(id) ⇒ Object
22
23
24
|
# File 'lib/epos_now_client/resources/staff.rb', line 22
def delete_staff(id)
destroy(id)
end
|
#find(id) ⇒ Object
10
11
12
|
# File 'lib/epos_now_client/resources/staff.rb', line 10
def find(id)
fetch(id)
end
|
#update_staff(id, attributes) ⇒ Object
18
19
20
|
# File 'lib/epos_now_client/resources/staff.rb', line 18
def update_staff(id, attributes)
update(id, attributes)
end
|