Class: Inbox::Rfc2822
- Inherits:
-
RestfulModel
- Object
- RestfulModel
- Inbox::Rfc2822
- Defined in:
- lib/rfc2882.rb
Instance Method Summary collapse
Methods inherited from RestfulModel
#==, #as_json, collection_name, #destroy, #initialize, #save!, #update, #url
Methods included from TimeAttrAccessor
Methods included from Parameters
Constructor Details
This class inherits a constructor from Inbox::RestfulModel
Instance Method Details
#inflate(json) ⇒ Object
9 10 11 12 13 |
# File 'lib/rfc2882.rb', line 9 def inflate(json) super # The 'rfc2822' attribute is a base64-encoded string. Decode it. @rfc2822 = Base64.decode64(@rfc2822) if json.has_key?('rfc2822') end |