Class: HMachine::Microformat::Geo
- Inherits:
-
POSH::Base
- Object
- POSH::Base
- HMachine::Microformat::Geo
- Defined in:
- lib/hmachine/microformat/geo.rb
Constant Summary collapse
- FRIENDLY_NAME =
"geo"- WIKI_URL =
'http://microformats.org/wiki/geo'
Constants included from HMachine
Instance Attribute Summary
Attributes inherited from POSH::Base
Instance Method Summary collapse
Methods inherited from POSH::Base
#[], [], add_property, #each_pair, #empty?, extract, get_properties, has_many, has_many!, has_one, has_one!, #has_property?, inherited, #initialize, #inspect, many, name, one, parent, properties, #properties, property_of?, remove_nested, search, selector, #to_h, #to_html, #to_s, validate
Methods included from HMachine
#extract, #extract_from, find, #find_in, #found_in?, get, get_document, get_url, map, normalize, #parse, #parse_first, #search, #valid?, #validate
Constructor Details
This class inherits a constructor from HMachine::POSH::Base
Instance Method Details
#to_google_maps ⇒ Object
42 43 44 |
# File 'lib/hmachine/microformat/geo.rb', line 42 def to_google_maps "http://maps.google.com/?q=#{latitude},#{longitude}" end |