Class: Wait
- Inherits:
-
TourPrimitive
- Object
- KMLObject
- TourPrimitive
- Wait
- Defined in:
- lib/kamelopard/classes.rb
Overview
Corresponds to a KML gx:Wait object
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
Attributes inherited from KMLObject
Instance Method Summary collapse
-
#initialize(duration = 0) ⇒ Wait
constructor
A new instance of Wait.
- #to_kml(indent = 0) ⇒ Object
Constructor Details
#initialize(duration = 0) ⇒ Wait
Returns a new instance of Wait.
1228 1229 1230 1231 |
# File 'lib/kamelopard/classes.rb', line 1228 def initialize(duration = 0) super() @duration = duration end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
1227 1228 1229 |
# File 'lib/kamelopard/classes.rb', line 1227 def duration @duration end |
Instance Method Details
#to_kml(indent = 0) ⇒ Object
1233 1234 1235 1236 1237 |
# File 'lib/kamelopard/classes.rb', line 1233 def to_kml(indent = 0) super + <<-wait_kml #{ ' ' * indent }<gx:Wait><gx:duration>#{@duration}</gx:duration></gx:Wait> wait_kml end |