class RMeetup::Type::Comment

Edited by Jason Berlinsky on 1/20/11 to allow for arbitrary data access See www.meetup.com/meetup_api/docs/ew/comment/ for available fields

Attributes

comment[RW]

Public Class Methods

new(comment = {}) click to toggle source
# File lib/rmeetup/type/comment.rb, line 18
def initialize(comment = {})
  self.comment = comment
end

Public Instance Methods

created() click to toggle source
# File lib/rmeetup/type/comment.rb, line 31
def created
  return DateTime.parse(self.comment['created'])
end
lat() click to toggle source
# File lib/rmeetup/type/comment.rb, line 34
def lat
  return self.comment['lat'].to_f
end
lon() click to toggle source
# File lib/rmeetup/type/comment.rb, line 37
def lon
  return self.comment['lon'].to_f
end
method_missing(id, *args) click to toggle source
# File lib/rmeetup/type/comment.rb, line 22
def method_missing(id, *args)
  return self.comment[id.id2name]
end
rating() click to toggle source

Special accessors that need typecasting or other parsing

# File lib/rmeetup/type/comment.rb, line 28
def rating
  return self.comment['rating'].to_i
end