Module: Plangrade::Api::Participant
- Included in:
- Client
- Defined in:
- lib/plangrade/api/participant.rb
Instance Method Summary collapse
- #all_participants(opts = {}) ⇒ Object
- #create_participant(opts = {}) ⇒ Object
- #delete_participant(id) ⇒ Object
- #get_participant(id) ⇒ Object
- #update_participant(id, opts = {}) ⇒ Object
Instance Method Details
#all_participants(opts = {}) ⇒ Object
20 21 22 |
# File 'lib/plangrade/api/participant.rb', line 20 def all_participants(opts={}) get("/api/v1/participants", opts) end |
#create_participant(opts = {}) ⇒ Object
4 5 6 |
# File 'lib/plangrade/api/participant.rb', line 4 def create_participant(opts = {}) post('/api/v1/participants', opts) end |
#delete_participant(id) ⇒ Object
12 13 14 |
# File 'lib/plangrade/api/participant.rb', line 12 def delete_participant(id) delete("/api/v1/participants/#{id}", opts) end |
#get_participant(id) ⇒ Object
16 17 18 |
# File 'lib/plangrade/api/participant.rb', line 16 def get_participant(id) get("/api/v1/participants/#{id}") end |
#update_participant(id, opts = {}) ⇒ Object
8 9 10 |
# File 'lib/plangrade/api/participant.rb', line 8 def update_participant(id, opts={}) put("/api/v1/participants/#{id}", opts) end |