Sha256: a2f2a2ad869aeded82c9544e8145e68f03580bf94a6dcb951c531f4a8bcf4dce

Contents?: true

Size: 323 Bytes

Versions: 9

Compression:

Stored size: 323 Bytes

Contents

# frozen_string_literal: true

module RatingChgkV2
  module Models
    class CountryModel < BaseModel
      def update(params = {})
        endpoint.reinitialize new_params: params
        self.class.load :do_put, endpoint
      end

      def destroy
        endpoint.do_delete
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rating-chgk-v2-1.6.0 lib/rating_chgk_v2/models/country_model.rb
rating-chgk-v2-1.5.0 lib/rating_chgk_v2/models/country_model.rb
rating-chgk-v2-1.4.0 lib/rating_chgk_v2/models/country_model.rb
rating-chgk-v2-1.3.0 lib/rating_chgk_v2/models/country_model.rb
rating-chgk-v2-1.2.0 lib/rating_chgk_v2/models/country_model.rb
rating-chgk-v2-1.1.0 lib/rating_chgk_v2/models/country_model.rb
rating-chgk-v2-1.0.1 lib/rating_chgk_v2/models/country_model.rb
rating-chgk-v2-1.0.0 lib/rating_chgk_v2/models/country_model.rb
rating-chgk-v2-1.0.0.rc1 lib/rating_chgk_v2/models/country_model.rb