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

Version Path
rating-chgk-v2-1.5.0 lib/rating_chgk_v2/rest/countries.rb
rating-chgk-v2-1.4.0 lib/rating_chgk_v2/rest/countries.rb
rating-chgk-v2-1.3.0 lib/rating_chgk_v2/rest/countries.rb
rating-chgk-v2-1.2.0 lib/rating_chgk_v2/rest/countries.rb
rating-chgk-v2-1.1.0 lib/rating_chgk_v2/rest/countries.rb
rating-chgk-v2-1.0.1 lib/rating_chgk_v2/rest/countries.rb
rating-chgk-v2-1.0.0 lib/rating_chgk_v2/rest/countries.rb
rating-chgk-v2-1.0.0.rc1 lib/rating_chgk_v2/rest/countries.rb