Class: Pike13::API::V2::Desk::Punch
- Defined in:
- lib/pike13/api/v2/desk/punch.rb
Class Method Summary collapse
-
.all ⇒ Object
GET /desk/punches.
-
.create(attributes) ⇒ Object
POST /desk/punches.
-
.destroy(id) ⇒ Object
DELETE /desk/punches/:id.
-
.find(id) ⇒ Object
GET /desk/punches/:id.
Methods inherited from Base
Class Method Details
.all ⇒ Object
GET /desk/punches
10 11 12 |
# File 'lib/pike13/api/v2/desk/punch.rb', line 10 def all client.get("desk/punches") end |
.create(attributes) ⇒ Object
POST /desk/punches
20 21 22 |
# File 'lib/pike13/api/v2/desk/punch.rb', line 20 def create(attributes) client.post("desk/punches", { punch: attributes }) end |
.destroy(id) ⇒ Object
DELETE /desk/punches/:id
25 26 27 |
# File 'lib/pike13/api/v2/desk/punch.rb', line 25 def destroy(id) client.delete("desk/punches/#{id}") end |
.find(id) ⇒ Object
GET /desk/punches/:id
15 16 17 |
# File 'lib/pike13/api/v2/desk/punch.rb', line 15 def find(id) client.get("desk/punches/#{id}") end |