Module: RatingChgkV2::Rest::Venues
- Included in:
- RatingChgkV2::Rest
- Defined in:
- lib/rating_chgk_v2/rest/venues.rb
Instance Method Summary collapse
- #create_venue(params) ⇒ Object
- #delete_venue(id) ⇒ Object
- #update_venue(id, params) ⇒ Object
- #venue(id) ⇒ Object
- #venues(params = {}) ⇒ Object
Instance Method Details
#create_venue(params) ⇒ Object
14 15 16 |
# File 'lib/rating_chgk_v2/rest/venues.rb', line 14 def create_venue(params) model_load name: 'Venue', ep_name: 'Venues', ep_params: [[], params], method: :do_post end |
#delete_venue(id) ⇒ Object
22 23 24 |
# File 'lib/rating_chgk_v2/rest/venues.rb', line 22 def delete_venue(id) endpoint('Venues', id).do_delete end |
#update_venue(id, params) ⇒ Object
18 19 20 |
# File 'lib/rating_chgk_v2/rest/venues.rb', line 18 def update_venue(id, params) model_load name: 'Venue', ep_name: 'Venues', ep_params: [id, params], method: :do_patch end |
#venue(id) ⇒ Object
10 11 12 |
# File 'lib/rating_chgk_v2/rest/venues.rb', line 10 def venue(id) model_load name: 'Venue', ep_name: 'Venues', ep_params: id end |
#venues(params = {}) ⇒ Object
6 7 8 |
# File 'lib/rating_chgk_v2/rest/venues.rb', line 6 def venues(params = {}) collection_load name: 'Venues', ep_params: [[], params] end |