Module: Lieu::Client::Actions
- Included in:
- Lieu::Client
- Defined in:
- lib/lieu/client/actions.rb
Overview
Methods for the Place Actions API
Instance Method Summary collapse
-
#add(options = {}) ⇒ Hashie::Mash
Add a place.
-
#add_event(options = {}) ⇒ Hashie::Mash
Add an event to a place.
-
#bump(options = {}) ⇒ Boolean
Bump a place or an event.
-
#delete(options = {}) ⇒ Boolean
Delete a place.
-
#delete_event(options = {}) ⇒ Boolean
Delete an event from a place.
-
#event_details(reference, event_id, options = {}) ⇒ Hashie::Mash
Get an event details.
Instance Method Details
#add(options = {}) ⇒ Hashie::Mash
Add a place.
31 32 33 |
# File 'lib/lieu/client/actions.rb', line 31 def add(={}) post('add', ) end |
#add_event(options = {}) ⇒ Hashie::Mash
Add an event to a place.
77 78 79 |
# File 'lib/lieu/client/actions.rb', line 77 def add_event(={}) post('event/add', ) end |
#bump(options = {}) ⇒ Boolean
Bump a place or an event.
56 57 58 |
# File 'lib/lieu/client/actions.rb', line 56 def bump(={}) boolean_from_response(:post, 'bump', ) end |
#delete(options = {}) ⇒ Boolean
Delete a place.
42 43 44 |
# File 'lib/lieu/client/actions.rb', line 42 def delete(={}) boolean_from_response(:post, 'delete', ) end |
#delete_event(options = {}) ⇒ Boolean
Delete an event from a place.
89 90 91 |
# File 'lib/lieu/client/actions.rb', line 89 def delete_event(={}) boolean_from_response(:post, 'event/delete', ) end |
#event_details(reference, event_id, options = {}) ⇒ Hashie::Mash
Get an event details.
98 99 100 101 102 |
# File 'lib/lieu/client/actions.rb', line 98 def event_details(reference, event_id, ={}) .merge!(reference: reference, event_id: event_id) get('event/details', ).result end |