Class: Eventbrite::APIArrayResource
- Inherits:
-
APIResource
- Object
- EventbriteObject
- APIResource
- Eventbrite::APIArrayResource
- Defined in:
- lib/eventbrite/api_array_resource.rb
Instance Attribute Summary
Attributes inherited from EventbriteObject
Class Method Summary collapse
Methods inherited from APIResource
class_name, #refresh, retrieve, url, #url
Methods inherited from EventbriteObject
#[], #[]=, #as_json, construct_from, #each, #initialize, #inspect, #keys, #next?, #next_page, #paginated?, #refresh_from, #to_hash, #to_json, #to_s, #values
Constructor Details
This class inherits a constructor from Eventbrite::EventbriteObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Eventbrite::EventbriteObject
Class Method Details
.all(params = {}, token = nil) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/eventbrite/api_array_resource.rb', line 3 def self.all(params={}, token=nil) unless event_id = params.delete(:event_id) raise InvalidRequestError.new('No event_id provided.') end response, token = Eventbrite.request(:get, self.all_url(event_id), token, params) Util.convert_to_eventbrite_object(response, token) end |