Sha256: 89ba95e0dcdcdcd99234d5871e8303f512def656a31eff27f502bc129c365d8a
Contents?: true
Size: 721 Bytes
Versions: 8
Compression:
Stored size: 721 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_put end def delete_country(id) endpoint('Countries', id).do_delete end end end end
Version data entries
8 entries across 8 versions & 1 rubygems