Sha256: 72b8df927f6221a5c08639976c595e29ffcc54d6c5fec0cf2c6b97ed652a66ce

Contents?: true

Size: 527 Bytes

Versions: 6

Compression:

Stored size: 527 Bytes

Contents

# frozen_string_literal: true

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

      def destroy
        endpoint.do_delete
      end

      def requests(params = {})
        endpoint.reinitialize new_params: params, add_query: :requests
        RatingChgkV2::Collections::TournamentRequestsCollection.load :do_get, endpoint
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rating-chgk-v2-1.6.0 lib/rating_chgk_v2/models/venue_model.rb
rating-chgk-v2-1.5.0 lib/rating_chgk_v2/models/venue_model.rb
rating-chgk-v2-1.4.0 lib/rating_chgk_v2/models/venue_model.rb
rating-chgk-v2-1.3.0 lib/rating_chgk_v2/models/venue_model.rb
rating-chgk-v2-1.2.0 lib/rating_chgk_v2/models/venue_model.rb
rating-chgk-v2-1.1.0 lib/rating_chgk_v2/models/venue_model.rb