Class: SoundCue
- Inherits:
-
TourPrimitive
- Object
- KMLObject
- TourPrimitive
- 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 KMLObject
Instance Method Summary collapse
-
#initialize(href, delayedStart = nil) ⇒ SoundCue
constructor
A new instance of SoundCue.
- #to_kml(indent = 0) ⇒ Object
Constructor Details
#initialize(href, delayedStart = nil) ⇒ SoundCue
Returns a new instance of SoundCue.
1243 1244 1245 1246 1247 |
# File 'lib/kamelopard/classes.rb', line 1243 def initialize(href, delayedStart = nil) super() @href = href @delayedStart = delayedStart end |
Instance Attribute Details
#delayedStart ⇒ Object
Returns the value of attribute delayedStart.
1242 1243 1244 |
# File 'lib/kamelopard/classes.rb', line 1242 def delayedStart @delayedStart end |
#href ⇒ Object
Returns the value of attribute href.
1242 1243 1244 |
# File 'lib/kamelopard/classes.rb', line 1242 def href @href end |
Instance Method Details
#to_kml(indent = 0) ⇒ Object
1249 1250 1251 1252 1253 1254 |
# File 'lib/kamelopard/classes.rb', line 1249 def to_kml(indent = 0) k = "#{ ' ' * indent }<gx:SoundCue id=\"#{ @id }\">\n" k << "#{ ' ' * indent } <href>#{ @href }</href>\n" k << "#{ ' ' * indent } <gx:delayedStart>#{ @delayedStart }</gx:delayedStart>\n" unless @delayedStart.nil? k << "#{ ' ' * indent}</gx:SoundCue>\n" end |