class RMeetup::Type::Event
Edited by Jason Berlinsky on 1/20/11 to allow for arbitrary data access See www.meetup.com/meetup_api/docs/events/ for available fields
Attributes
event[RW]
Public Class Methods
new(event = {})
click to toggle source
# File lib/rmeetup/type/event.rb, line 18 def initialize(event = {}) self.event = event end
Public Instance Methods
id()
click to toggle source
Special accessors that need typecasting or other parsing
# File lib/rmeetup/type/event.rb, line 27 def id self.event['id'].to_i end
lat()
click to toggle source
# File lib/rmeetup/type/event.rb, line 30 def lat self.event['lat'].to_f end
lon()
click to toggle source
# File lib/rmeetup/type/event.rb, line 33 def lon self.event['lon'].to_f end
method_missing(id, *args)
click to toggle source
# File lib/rmeetup/type/event.rb, line 22 def method_missing(id, *args) return self.event[id.id2name] end
rsvpcount()
click to toggle source
# File lib/rmeetup/type/event.rb, line 36 def rsvpcount self.event['rsvpcount'].to_i end
time()
click to toggle source
# File lib/rmeetup/type/event.rb, line 42 def time DateTime.parse(self.event['time']) end
updated()
click to toggle source
# File lib/rmeetup/type/event.rb, line 39 def updated DateTime.parse(self.event['updated']) end