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