Class Amazon::Element
In: lib/amazon/ecs.rb
Parent: Object

Internal wrapper class to provide convenient method to access Nokogiri element value.

Methods

/   attributes   elem   get   get   get_array   get_array   get_element   get_elements   get_hash   get_hash   get_unescaped   get_unescaped   new   to_s  

Public Class methods

Return the text value of an element.

Return an array of values based on the given path.

Return child element text values of the given path.

Return an unescaped text value of an element.

Pass Nokogiri::XML::Element object

Public Instance methods

Returns a Nokogiri::XML::NodeSet of elements matching the given path. Example: element/"author".

Returns Nokogiri::XML::Element object

Get the text value of the given path, leave empty to retrieve current element value.

Get the array values of the given path.

Similar with search_and_convert but always return first element if more than one elements found

Return an array of Amazon::Element matching the given path

Get the children element text values in hash format with the element names as the hash keys.

Get the unescaped HTML text of the given path.

[Validate]