bodrovis/rating-chgk-v2

View on GitHub
lib/rating_chgk_v2/models/season_model.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module RatingChgkV2
  module Models
    class SeasonModel < 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