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.18.1 lib/rfc2882.rb
inbox-0.18.1 lib/rfc2882.rb
inbox-0.18.0 lib/rfc2882.rb
nylas-0.18.0 lib/rfc2882.rb
nylas-0.17.4 lib/rfc2882.rb
inbox-0.17.4 lib/rfc2882.rb
inbox-0.17.3 lib/rfc2882.rb
inbox-0.17.2 lib/rfc2882.rb
nylas-0.17.2 lib/rfc2882.rb
inbox-0.17.1 lib/rfc2882.rb
nylas-0.17.1 lib/rfc2882.rb
nylas-0.17.0 lib/rfc2882.rb
inbox-0.17.0 lib/rfc2882.rb
inbox-0.16.1 lib/rfc2882.rb
nylas-0.16.1 lib/rfc2882.rb
nylas-0.16.0 lib/rfc2882.rb
inbox-0.16.0 lib/rfc2882.rb
inbox-0.15.8 lib/rfc2882.rb
nylas-0.15.7d lib/rfc2882.rb
inbox-0.15.7d lib/rfc2882.rb