Sha256: 2125a917b4e4d85c1076c870d8be8b06456c7e582dc6ed8bea1833c78c4c09db

Contents?: true

Size: 403 Bytes

Versions: 8

Compression:

Stored size: 403 Bytes

Contents

module Eventbrite
  module Api
    module Model
      class Event < Base
      	def model_route
          'events'
        end

        def search(opts={})
          self.get(opts, 'search')
        end

        def publish(id)
          self.update("#{id}/publish", {}, {})
        end

        def unpublish(id)
          self.update("#{id}/unpublish", {}, {})
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
eventbrite-api-v3-0.0.7 lib/eventbrite/api/model/event.rb
eventbrite-api-v3-0.0.6 lib/eventbrite/api/model/event.rb
eventbrite-api-v3-0.0.5 lib/eventbrite/api/model/event.rb
eventbrite-api-0.0.4 lib/eventbrite/api/model/event.rb
eventbrite-api-0.0.3 lib/eventbrite/api/model/event.rb
eventbrite-api-0.0.2 lib/eventbrite/api/model/event.rb
eventbrite-api-0.0.1 lib/eventbrite/api/model/event.rb
eventbrite-api-0.0.0 lib/eventbrite/api/model/event.rb