Class: Eventbrite::Attendee

Inherits:
APIArrayResource show all
Defined in:
lib/eventbrite/resources/attendee.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

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



3
4
5
6
7
8
# File 'lib/eventbrite/resources/attendee.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



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

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