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

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

Methods

/   elem   get   get   get_array   get_array   get_hash   get_hash   get_unescaped   get_unescaped   new   search_and_convert   to_s  

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.

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.

Find Hpricot::Elements matching the given path, and convert to Amazon::Element. Returns an array Amazon::Elements if more than Hpricot::Elements size is greater than 1.

[Validate]