Sha256: e4339b7820cbda4937864696a889badff564bfa35aa8308d360e6250aaf35833

Contents?: true

Size: 555 Bytes

Versions: 7

Compression:

Stored size: 555 Bytes

Contents

module Songkickr
  module RemoteApi
    module EventDetails
      # ==== Event API
      # http://www.songkick.com/developer/upcoming-events
      #
      # Getting detailed information of a single event.
      #
      # === Parameters
      # * +event_id+ - Songkick event ID. Extract the event ID either from a previous API call or from the URL of the event page on the website.
      def event(event_id)
        result = get("/events/#{event_id}.json")
        Songkickr::Event.new result["resultsPage"]["results"]["event"]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
songkickr-0.5.5 lib/songkickr/remote_api/event_details.rb
songkickr-0.5.4 lib/songkickr/remote_api/event_details.rb
songkickr-0.5.3 lib/songkickr/remote_api/event_details.rb
songkickr-0.5.2 lib/songkickr/remote_api/event_details.rb
songkickr-0.5.0 lib/songkickr/remote_api/event_details.rb
songkickr-0.4.1 lib/songkickr/remote_api/event_details.rb
songkickr-0.4.0 lib/songkickr/remote_api/event_details.rb