Class: GoogleMap::GeoXml
- Inherits:
-
Object
- Object
- GoogleMap::GeoXml
- Includes:
- UnbackedDomId
- Defined in:
- lib/google_map/geo_xml.rb
Instance Attribute Summary collapse
-
#url_of_xml ⇒ Object
Returns the value of attribute url_of_xml.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ GeoXml
constructor
A new instance of GeoXml.
- #to_js ⇒ Object
Methods included from UnbackedDomId
Constructor Details
#initialize(options = {}) ⇒ GeoXml
Returns a new instance of GeoXml.
9 10 11 |
# File 'lib/google_map/geo_xml.rb', line 9 def initialize( = {}) .each_pair { |key, value| send("#{key}=", value) } end |
Instance Attribute Details
#url_of_xml ⇒ Object
Returns the value of attribute url_of_xml.
7 8 9 |
# File 'lib/google_map/geo_xml.rb', line 7 def url_of_xml @url_of_xml end |
Instance Method Details
#to_js ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/google_map/geo_xml.rb', line 13 def to_js js = [] js << "#{dom_id} = new GGeoXml('#{url_of_xml}');" js.join "\n" end |