Sha256: 01fef8b9d35c9a30d00dff8971e203be4da5c6aad1e3f951ef7296facead6b74

Contents?: true

Size: 547 Bytes

Versions: 8

Compression:

Stored size: 547 Bytes

Contents

require 'rubygems'
require 'hpricot'
module MMS2R

  ##
  # Helio version version of MMS2R::Media
  #
  # Helio has a clean multipart/mixed message format.  It
  # includes markup that holds some branding around the media
  # artifact.  If text is included with the message it is located
  # in the markup.
  
  class MMS2R::HelioMedia < MMS2R::Media
    def get_body
      text = get_text()
      d = Hpricot(text)
      body = d.search("//table/tr[2]/td/table/tr/td/table/tr[6]/td").inner_html
      body 
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mms2r-1.1.10 lib/mms2r/helio_media.rb
mms2r-1.1.3 lib/mms2r/helio_media.rb
mms2r-1.1.5 lib/mms2r/helio_media.rb
mms2r-1.1.6 lib/mms2r/helio_media.rb
mms2r-1.1.4 lib/mms2r/helio_media.rb
mms2r-1.1.7 lib/mms2r/helio_media.rb
mms2r-1.1.8 lib/mms2r/helio_media.rb
mms2r-1.1.9 lib/mms2r/helio_media.rb