Class: RatingChgkV2::Models::CountryModel
- Inherits:
-
BaseModel
- Object
- BaseModel
- RatingChgkV2::Models::CountryModel
show all
- Defined in:
- lib/rating_chgk_v2/models/country_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/country_model.rb', line 11
def destroy
endpoint.do_delete
end
|
#update(params = {}) ⇒ Object
6
7
8
9
|
# File 'lib/rating_chgk_v2/models/country_model.rb', line 6
def update(params = {})
endpoint.reinitialize new_params: params
self.class.load :do_put, endpoint
end
|