Sha256: 960d5dc97ea9490a9e9bef25bb81ed69d6f1c67ca1a9dbffe901755dd74c8f84

Contents?: true

Size: 458 Bytes

Versions: 23

Compression:

Stored size: 458 Bytes

Contents

module GoogleApps
  module Atom
    class Message
      def initialize
        @document = Atom::XML::Document.new
      end
      
      def from(filename)
        message = File.read(filename)
        @document.root = Atom::XML::Node.new('apps:rfc822Msg', message)
        Atom::XML::Namespace.new(@document.root, 'apps', 'http://schemas.google.com/apps/2006')

        @document
      end

      def to_s
        @document.to_s
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
google_apps-0.4.9.2 lib/google_apps/atom/message.rb
google_apps-0.4.9.1 lib/google_apps/atom/message.rb
google_apps-0.4.9 lib/google_apps/atom/message.rb
google_apps-0.4.8.1 lib/google_apps/atom/message.rb
google_apps-0.4.8 lib/google_apps/atom/message.rb
google_apps-0.4.6 lib/google_apps/atom/message.rb
google_apps-0.4.5 lib/google_apps/atom/message.rb
google_apps-0.4.2 lib/google_apps/atom/message.rb
google_apps-0.4.1 lib/google_apps/atom/message.rb
google_apps-0.4 lib/google_apps/atom/message.rb
google_apps-0.3.12 lib/google_apps/atom/message.rb
google_apps-0.3.11 lib/google_apps/atom/message.rb
google_apps-0.3.10 lib/google_apps/atom/message.rb
google_apps-0.3.9 lib/google_apps/atom/message.rb
google_apps-0.3.8 lib/google_apps/atom/message.rb
google_apps-0.3.7 lib/google_apps/atom/message.rb
google_apps-0.3.6 lib/google_apps/atom/message.rb
google_apps-0.3.5 lib/google_apps/atom/message.rb
google_apps-0.3.4 lib/google_apps/atom/message.rb
google_apps-0.3.3 lib/google_apps/atom/message.rb