Class: Inbox::Rfc2822

Inherits:
RestfulModel show all
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

#time_attr_accessor

Methods included from Parameters

included, #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