Sha256: cc052bdf6b33e34bc60c0252f786ff0ec811267eb2760ecdd99aa30eac832324
Contents?: true
Size: 947 Bytes
Versions: 26
Compression:
Stored size: 947 Bytes
Contents
require 'facebooker/model' module Facebooker class Event ## # The relationship between a Facebook user and an Event to which he or she has been # invited and may or may not be attending (based on #rsvp_status) class Attendance include Model attr_accessor :eid, :uid, :rsvp_status ## # Get the full, populated Event object which this Attendance is associated with. # First access will query the Facebook API (facebook.events.get). Subsequent # calls are retrieved from in-memory cache. def event @event ||= Event.from_hash(session.post('facebook.events.get', :eids => [eid]).first) end #TODO: implement user() method end include Model attr_accessor :eid, :pic, :pic_small, :pic_big, :name, :creator, :update_time, :description, :tagline, :venue, :host, :event_type, :nid, :location, :end_time, :start_time, :event_subtype end end
Version data entries
26 entries across 26 versions & 8 rubygems