Class: Eventbrite::Team

Inherits:
APIArrayResource show all
Defined in:
lib/eventbrite/resources/team.rb

Instance Attribute Summary

Attributes inherited from EventbriteObject

#token

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from APIArrayResource

all

Methods inherited from APIResource

class_name, #refresh, 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

.attendees(event_id, id, token = nil) ⇒ Object



10
11
12
13
# File 'lib/eventbrite/resources/team.rb', line 10

def self.attendees(event_id, id, token=nil)
  response, token = Eventbrite.request(:get, self.attendees_url(event_id, id), token, params)
  Util.convert_to_eventbrite_object(response, token)
end

.retrieve(event_id, id, token = nil) ⇒ Object



3
4
5
6
7
8
# File 'lib/eventbrite/resources/team.rb', line 3

def self.retrieve(event_id, id, token=nil)
  instance = self.new(id, token)
  instance.event_id = event_id
  instance.refresh
  instance
end

Instance Method Details

#urlObject



15
16
17
# File 'lib/eventbrite/resources/team.rb', line 15

def url
  "/events/#{CGI.escape(self.event_id)}#{self.class.url}/#{CGI.escape(self.id)}"
end