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