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