Sha256: 22f09a8a2d5de537aea38b925437e3893e2a518fffddc623165bbc96208bf239

Contents?: true

Size: 305 Bytes

Versions: 37

Compression:

Stored size: 305 Bytes

Contents

require 'base64'
require 'restful_model'

module Inbox
  class Rfc2822 < RestfulModel

    parameter :rfc2822

    def inflate(json)
      super
      # The 'rfc2822' attribute is a base64-encoded string. Decode it.
      @rfc2822 = Base64.decode64(@rfc2822) if json.has_key?('rfc2822')
    end
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
nylas-0.15.7c lib/rfc2882.rb
nylas-0.15.7b lib/rfc2882.rb
nylas-0.15.7 lib/rfc2882.rb
nylas-0.15.6 lib/rfc2882.rb
nylas-0.15.5 lib/rfc2882.rb
inbox-0.15.4 lib/rfc2882.rb
inbox-0.15.3 lib/rfc2882.rb
inbox-0.15.2 lib/rfc2882.rb
inbox-0.15.1 lib/rfc2882.rb
inbox-0.15.0 lib/rfc2882.rb
inbox-0.14.1 lib/rfc2882.rb
inbox-0.14.0 lib/rfc2882.rb
inbox-0.13.0 lib/rfc2882.rb
inbox-0.12.0 lib/rfc2882.rb
inbox-0.11.0 lib/rfc2882.rb
inbox-0.10.1 lib/rfc2882.rb
inbox-0.10.0 lib/rfc2882.rb