Class: KML::LookAt

Inherits:
Object show all
Defined in:
lib/kml/look_at.rb

Instance Attribute Summary collapse

Attributes inherited from Object

#id

Instance Method Summary collapse

Methods inherited from Object

#initialize, #parse

Constructor Details

This class inherits a constructor from KML::Object

Instance Attribute Details

#altitudeObject

Returns the value of attribute altitude.



15
16
17
# File 'lib/kml/look_at.rb', line 15

def altitude
  @altitude
end

#altitude_modeObject

Returns the value of attribute altitude_mode.



19
20
21
# File 'lib/kml/look_at.rb', line 19

def altitude_mode
  @altitude_mode
end

#headingObject

Returns the value of attribute heading.



18
19
20
# File 'lib/kml/look_at.rb', line 18

def heading
  @heading
end

#latitudeObject

Returns the value of attribute latitude.



14
15
16
# File 'lib/kml/look_at.rb', line 14

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



13
14
15
# File 'lib/kml/look_at.rb', line 13

def longitude
  @longitude
end

#rangeObject

Returns the value of attribute range.



16
17
18
# File 'lib/kml/look_at.rb', line 16

def range
  @range
end

#tiltObject

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