Sha256: cd11e2e0aac1cd09850fb6eef943e66fc379f49a7a2dfae2cf9db7373454c7e6

Contents?: true

Size: 686 Bytes

Versions: 8

Compression:

Stored size: 686 Bytes

Contents

# frozen_string_literal: true

module RatingChgkV2
  module Rest
    module Venues
      def venues(params = {})
        collection_load name: 'Venues', ep_params: [[], params]
      end

      def venue(id)
        model_load name: 'Venue', ep_name: 'Venues', ep_params: id
      end

      def create_venue(params)
        model_load name: 'Venue', ep_name: 'Venues', ep_params: [[], params], method: :do_post
      end

      def update_venue(id, params)
        model_load name: 'Venue', ep_name: 'Venues', ep_params: [id, params], method: :do_put
      end

      def delete_venue(id)
        endpoint('Venues', 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/venues.rb
rating-chgk-v2-1.4.0 lib/rating_chgk_v2/rest/venues.rb
rating-chgk-v2-1.3.0 lib/rating_chgk_v2/rest/venues.rb
rating-chgk-v2-1.2.0 lib/rating_chgk_v2/rest/venues.rb
rating-chgk-v2-1.1.0 lib/rating_chgk_v2/rest/venues.rb
rating-chgk-v2-1.0.1 lib/rating_chgk_v2/rest/venues.rb
rating-chgk-v2-1.0.0 lib/rating_chgk_v2/rest/venues.rb
rating-chgk-v2-1.0.0.rc1 lib/rating_chgk_v2/rest/venues.rb