Class: RatingChgkV2::Models::VenueModel
- Inherits:
-
BaseModel
- Object
- BaseModel
- RatingChgkV2::Models::VenueModel
show all
- Defined in:
- lib/rating_chgk_v2/models/venue_model.rb
Instance Attribute Summary
Attributes inherited from BaseModel
#endpoint
Instance Method Summary
collapse
Methods inherited from BaseModel
inherited, #initialize, load
Instance Method Details
#destroy ⇒ Object
11
12
13
|
# File 'lib/rating_chgk_v2/models/venue_model.rb', line 11
def destroy
endpoint.do_delete
end
|
#requests(params = {}) ⇒ Object
#update(params = {}) ⇒ Object
6
7
8
9
|
# File 'lib/rating_chgk_v2/models/venue_model.rb', line 6
def update(params = {})
endpoint.reinitialize new_params: params
self.class.load :do_put, endpoint
end
|