Module: Kamelopard::Snippet

Included in:
Feature
Defined in:
lib/kamelopard/classes.rb

Overview

Support class for Feature object

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#maxLinesObject

Returns the value of attribute maxLines


821
822
823
# File 'lib/kamelopard/classes.rb', line 821

def maxLines
  @maxLines
end

#snippet_textObject

Returns the value of attribute snippet_text


821
822
823
# File 'lib/kamelopard/classes.rb', line 821

def snippet_text
  @snippet_text
end

Instance Method Details

#snippet_to_kml(elem = nil) ⇒ Object


823
824
825
826
827
828
829
# File 'lib/kamelopard/classes.rb', line 823

def snippet_to_kml(elem = nil)
    e = XML::Node.new 'Snippet'
    e.attributes['maxLines'] = @maxLines.to_s
    e << @snippet_text
    elem << e unless elem.nil?
    e
end