Module: RockRMS::Client::Registration
- Included in:
- RockRMS::Client
- Defined in:
- lib/rock_rms/resources/registration.rb
Constant Summary collapse
- PATH =
'Registrations'.freeze
Instance Method Summary collapse
- #delete_registration(id) ⇒ Object
- #find_registration(id) ⇒ Object
- #list_registrations(options = {}) ⇒ Object
Instance Method Details
#delete_registration(id) ⇒ Object
16 17 18 |
# File 'lib/rock_rms/resources/registration.rb', line 16 def delete_registration(id) delete(registration_path(id)) end |
#find_registration(id) ⇒ Object
11 12 13 14 |
# File 'lib/rock_rms/resources/registration.rb', line 11 def find_registration(id) res = get(registration_path(id)) Response::Registration.format(res) end |
#list_registrations(options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/rock_rms/resources/registration.rb', line 6 def list_registrations( = {}) res = get(registration_path, ) Response::Registration.format(res) end |