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

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

Methods

Public Class methods

Similar to get, except an element object must be passed-in.

Similar to get_array, except an element object must be passed-in.

Similar to get_hash, except an element object must be passed-in.

Similar to get_unescaped, except an element object must be passed-in.

Pass Hpricot::Elements object

Public Instance methods

Find Hpricot::Elements matching the given path. Example: element/"author".

Returns Hpricot::Elments 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.

Return an array of Amazon::Element matching the given path, or Amazon::Element if there is only one element found.

DEPRECATED: Please use get_elements and get_element instead.

[Validate]