Class: KML::LookAt
Instance Attribute Summary collapse
-
#altitude ⇒ Object
Returns the value of attribute altitude.
-
#altitude_mode ⇒ Object
Returns the value of attribute altitude_mode.
-
#heading ⇒ Object
Returns the value of attribute heading.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#range ⇒ Object
Returns the value of attribute range.
-
#tilt ⇒ Object
Returns the value of attribute tilt.
Attributes inherited from Object
Instance Method Summary collapse
Methods inherited from Object
Constructor Details
This class inherits a constructor from KML::Object
Instance Attribute Details
#altitude ⇒ Object
Returns the value of attribute altitude.
15 16 17 |
# File 'lib/kml/look_at.rb', line 15 def altitude @altitude end |
#altitude_mode ⇒ Object
Returns the value of attribute altitude_mode.
19 20 21 |
# File 'lib/kml/look_at.rb', line 19 def altitude_mode @altitude_mode end |
#heading ⇒ Object
Returns the value of attribute heading.
18 19 20 |
# File 'lib/kml/look_at.rb', line 18 def heading @heading end |
#latitude ⇒ Object
Returns the value of attribute latitude.
14 15 16 |
# File 'lib/kml/look_at.rb', line 14 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
13 14 15 |
# File 'lib/kml/look_at.rb', line 13 def longitude @longitude end |
#range ⇒ Object
Returns the value of attribute range.
16 17 18 |
# File 'lib/kml/look_at.rb', line 16 def range @range end |
#tilt ⇒ Object
Returns the value of attribute tilt.
17 18 19 |
# File 'lib/kml/look_at.rb', line 17 def tilt @tilt end |
Instance Method Details
#render(xm = Builder::XmlMarkup.new(:indent => 2)) ⇒ Object
21 22 23 24 25 |
# File 'lib/kml/look_at.rb', line 21 def render(xm=Builder::XmlMarkup.new(:indent => 2)) [:longitude, :latitude, :altitude, :range, :tilt, :heading, :altitude_mode].each do |a| xm.__send__(a, self.__send__(a)) unless self.__send__(a).nil? end end |