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 TourPrimitive
Attributes inherited from Object
#comment, #kml_id, #master_only
Instance Method Summary collapse
-
#initialize(href, delayedStart = nil) ⇒ SoundCue
constructor
A new instance of SoundCue.
- #to_kml(elem = nil) ⇒ Object
Methods inherited from Object
#_alternate_to_kml, #change, #master_only?, parse
Constructor Details
#initialize(href, delayedStart = nil) ⇒ SoundCue
Returns a new instance of SoundCue.
1911 1912 1913 1914 1915 |
# File 'lib/kamelopard/classes.rb', line 1911 def initialize(href, delayedStart = nil) super() @href = href @delayedStart = delayedStart end |
Instance Attribute Details
#delayedStart ⇒ Object
Returns the value of attribute delayedStart.
1910 1911 1912 |
# File 'lib/kamelopard/classes.rb', line 1910 def delayedStart @delayedStart end |
#href ⇒ Object
Returns the value of attribute href.
1910 1911 1912 |
# File 'lib/kamelopard/classes.rb', line 1910 def href @href end |
Instance Method Details
#to_kml(elem = nil) ⇒ Object
1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 |
# File 'lib/kamelopard/classes.rb', line 1917 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 |