class RMeetup::Type::Rsvp

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

Attributes

rsvp[RW]
to_h[RW]

Public Class Methods

new(rsvp = {}) click to toggle source
# File lib/rmeetup/type/rsvp.rb, line 15
def initialize(rsvp = {})
  @rsvp = rsvp
end

Public Instance Methods

lat() click to toggle source

Special accessors that need typecasting or other parsing

# File lib/rmeetup/type/rsvp.rb, line 31
def lat
  return self.rsvp['lat'].to_f
end
lon() click to toggle source
# File lib/rmeetup/type/rsvp.rb, line 34
def lon
  return self.rsvp['lon'].to_f
end
method_missing(id, *args) click to toggle source
# File lib/rmeetup/type/rsvp.rb, line 21
def method_missing(id, *args)
  if rsvp.has_key?(id.id2name)
    rsvp[id.id2name]
  else
    fail NoMethodError.new('no method')
  end
end