class RMeetup::Type::Venue
Edited by Jason Berlinsky on 1/20/11 to allow for arbitrary data access See www.meetup.com/meetup_api/docs/cities/ for available fields
Attributes
venue[RW]
Public Class Methods
new(venue = {})
click to toggle source
# File lib/rmeetup/type/venue.rb, line 18 def initialize(venue = {}) self.venue = venue end
Public Instance Methods
address_1()
click to toggle source
# File lib/rmeetup/type/venue.rb, line 37 def address_1 return self.venue['address_1'].to_s end
city()
click to toggle source
# File lib/rmeetup/type/venue.rb, line 40 def city return self.venue['city'].to_s end
country()
click to toggle source
# File lib/rmeetup/type/venue.rb, line 43 def country return self.venue['country'].to_s end
distance()
click to toggle source
# File lib/rmeetup/type/venue.rb, line 46 def distance return self.venue['distance'].to_i end
id()
click to toggle source
Special accessors that need typecasting or other parsing
# File lib/rmeetup/type/venue.rb, line 28 def id return self.venue['id'].to_i end
lat()
click to toggle source
# File lib/rmeetup/type/venue.rb, line 55 def lat return self.venue['lat'].to_f end
lon()
click to toggle source
# File lib/rmeetup/type/venue.rb, line 58 def lon return self.venue['lon'].to_f end
method_missing(id, *args)
click to toggle source
# File lib/rmeetup/type/venue.rb, line 22 def method_missing(id, *args) return self.venue[id.id2name] end
rating()
click to toggle source
# File lib/rmeetup/type/venue.rb, line 52 def rating return self.venue['rating'].to_s end
rating_count()
click to toggle source
# File lib/rmeetup/type/venue.rb, line 49 def rating_count return self.venue['rating_count'].to_i end
state()
click to toggle source
# File lib/rmeetup/type/venue.rb, line 34 def state return self.venue['state'].to_s end
zip()
click to toggle source
# File lib/rmeetup/type/venue.rb, line 31 def zip return self.venue['zip'].to_s end