class MapmyindiaRuby::GeoAddr
Attributes
PLZ[R]
POI[R]
area[R]
city[R]
country[R]
entries[R]
formatted_address[R]
house_no[R]
lat[R]
lng[R]
phone[R]
street[R]
type[R]
Public Class Methods
build(addrs)
click to toggle source
# File lib/mapmyindia_ruby/geoaddr.rb, line 7 def self.build(addrs) addrs.collect do |addr| GeoAddr.new(addr) end end
new(attributes)
click to toggle source
# File lib/mapmyindia_ruby/geoaddr.rb, line 13 def initialize(attributes) @country = attributes["country"] @city = attributes["city"] @area = attributes["area"] @PLZ = attributes["PLZ"] @street = attributes["street"] @house_no = attributes["house_no"] @POI = attributes["POI"] @phone = attributes["phone"] @lng = attributes["lng"] @lat = attributes["lat"] @type = attributes["type"] @entries = attributes["entries"] @formatted_address = attributes["formatted_address"] end