Class: Icon
- Inherits:
-
Object
- Object
- Icon
- Defined in:
- lib/kamelopard/classes.rb
Overview
Corresponds to the KML Icon object
Instance Attribute Summary collapse
-
#h ⇒ Object
Returns the value of attribute h.
-
#href ⇒ Object
Returns the value of attribute href.
-
#httpQuery ⇒ Object
Returns the value of attribute httpQuery.
-
#refreshInterval ⇒ Object
Returns the value of attribute refreshInterval.
-
#refreshMode ⇒ Object
Returns the value of attribute refreshMode.
-
#viewBoundScale ⇒ Object
Returns the value of attribute viewBoundScale.
-
#viewFormat ⇒ Object
Returns the value of attribute viewFormat.
-
#viewRefreshMode ⇒ Object
Returns the value of attribute viewRefreshMode.
-
#viewRefreshTime ⇒ Object
Returns the value of attribute viewRefreshTime.
-
#w ⇒ Object
Returns the value of attribute w.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(href = nil) ⇒ Icon
constructor
A new instance of Icon.
- #to_kml(indent = 0) ⇒ Object
Constructor Details
#initialize(href = nil) ⇒ Icon
Returns a new instance of Icon.
849 850 851 |
# File 'lib/kamelopard/classes.rb', line 849 def initialize(href = nil) @href = href end |
Instance Attribute Details
#h ⇒ Object
Returns the value of attribute h.
847 848 849 |
# File 'lib/kamelopard/classes.rb', line 847 def h @h end |
#href ⇒ Object
Returns the value of attribute href.
847 848 849 |
# File 'lib/kamelopard/classes.rb', line 847 def href @href end |
#httpQuery ⇒ Object
Returns the value of attribute httpQuery.
847 848 849 |
# File 'lib/kamelopard/classes.rb', line 847 def httpQuery @httpQuery end |
#refreshInterval ⇒ Object
Returns the value of attribute refreshInterval.
847 848 849 |
# File 'lib/kamelopard/classes.rb', line 847 def refreshInterval @refreshInterval end |
#refreshMode ⇒ Object
Returns the value of attribute refreshMode.
847 848 849 |
# File 'lib/kamelopard/classes.rb', line 847 def refreshMode @refreshMode end |
#viewBoundScale ⇒ Object
Returns the value of attribute viewBoundScale.
847 848 849 |
# File 'lib/kamelopard/classes.rb', line 847 def viewBoundScale @viewBoundScale end |
#viewFormat ⇒ Object
Returns the value of attribute viewFormat.
847 848 849 |
# File 'lib/kamelopard/classes.rb', line 847 def viewFormat @viewFormat end |
#viewRefreshMode ⇒ Object
Returns the value of attribute viewRefreshMode.
847 848 849 |
# File 'lib/kamelopard/classes.rb', line 847 def viewRefreshMode @viewRefreshMode end |
#viewRefreshTime ⇒ Object
Returns the value of attribute viewRefreshTime.
847 848 849 |
# File 'lib/kamelopard/classes.rb', line 847 def viewRefreshTime @viewRefreshTime end |
#w ⇒ Object
Returns the value of attribute w.
847 848 849 |
# File 'lib/kamelopard/classes.rb', line 847 def w @w end |
#x ⇒ Object
Returns the value of attribute x.
847 848 849 |
# File 'lib/kamelopard/classes.rb', line 847 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
847 848 849 |
# File 'lib/kamelopard/classes.rb', line 847 def y @y end |
Instance Method Details
#to_kml(indent = 0) ⇒ Object
853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 |
# File 'lib/kamelopard/classes.rb', line 853 def to_kml(indent = 0) k = "#{ ' ' * indent }<Icon>\n" k << kml_array([ [@href, 'href', true], [@x, 'gx:x', true], [@y, 'gx:y', true], [@w, 'gx:w', true], [@h, 'gx:h', true], [@refreshMode, 'refreshMode', true], [@refreshInterval, 'refreshInterval', true], [@viewRefreshMode, 'viewRefreshMode', true], [@viewBoundScale, 'viewBoundScale', true], [@viewFormat, 'viewFormat', true], [@httpQuery, 'httpQuery', true], ], indent + 4) k << "#{ ' ' * indent }</Icon>\n" end |