Class: Kamelopard::SoundCue
- Inherits:
-
TourPrimitive
- Object
- Object
- TourPrimitive
- Kamelopard::SoundCue
- Defined in:
- lib/kamelopard/classes.rb
Overview
Corresponds to a KML gx:SoundCue object
Instance Attribute Summary collapse
-
#delayedStart ⇒ Object
Returns the value of attribute delayedStart.
-
#href ⇒ Object
Returns the value of attribute href.
Attributes inherited from Object
Instance Method Summary collapse
-
#initialize(href, delayedStart = nil) ⇒ SoundCue
constructor
A new instance of SoundCue.
- #to_kml(elem = nil) ⇒ Object
Methods inherited from Object
Constructor Details
#initialize(href, delayedStart = nil) ⇒ SoundCue
Returns a new instance of SoundCue.
1420 1421 1422 1423 1424 |
# File 'lib/kamelopard/classes.rb', line 1420 def initialize(href, delayedStart = nil) super() @href = href @delayedStart = delayedStart end |
Instance Attribute Details
#delayedStart ⇒ Object
Returns the value of attribute delayedStart.
1419 1420 1421 |
# File 'lib/kamelopard/classes.rb', line 1419 def delayedStart @delayedStart end |
#href ⇒ Object
Returns the value of attribute href.
1419 1420 1421 |
# File 'lib/kamelopard/classes.rb', line 1419 def href @href end |
Instance Method Details
#to_kml(elem = nil) ⇒ Object
1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 |
# File 'lib/kamelopard/classes.rb', line 1426 def to_kml(elem = nil) k = XML::Node.new 'gx:SoundCue' super k d = XML::Node.new 'href' d << @href.to_s k << d if not @delayedStart.nil? then d = XML::Node.new 'gx:delayedStart' d << @delayedStart.to_s k << d end elem << k unless elem.nil? k end |