Sha256: e9c944f52878a0e3e36f9be378d694961849a96e50522fc9aa6d42b6998d710b
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
# frozen_string_literal: true module RatingChgkV2 module Rest module Countries def countries(params = {}) collection_load name: 'Countries', ep_params: [[], params] end def country(id) model_load name: 'Country', ep_name: 'Countries', ep_params: id end def create_country(params) model_load name: 'Country', ep_name: 'Countries', ep_params: [[], params], method: :do_post end def update_country(id, params) model_load name: 'Country', ep_name: 'Countries', ep_params: [id, params], method: :do_patch end def delete_country(id) endpoint('Countries', id).do_delete end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rating-chgk-v2-1.6.0 | lib/rating_chgk_v2/rest/countries.rb |