Class: Inbox::ExpandedMessage
- Inherits:
-
Message
- Object
- RestfulModel
- Message
- Inbox::ExpandedMessage
- Defined in:
- lib/message.rb
Instance Attribute Summary collapse
-
#in_reply_to ⇒ Object
readonly
Returns the value of attribute in_reply_to.
-
#message_id ⇒ Object
readonly
override inflate because expanded messages have some special parameters like In-Reply-To and Message-Id.
-
#references ⇒ Object
readonly
Returns the value of attribute references.
Attributes inherited from RestfulModel
Instance Method Summary collapse
Methods inherited from Message
#as_json, #expanded, #files, #files?, #raw
Methods included from ReadUnreadMethods
#mark_as_read!, #mark_as_unread!, #star!, #unstar!, #update_param!
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 Attribute Details
#in_reply_to ⇒ Object (readonly)
Returns the value of attribute in_reply_to.
108 109 110 |
# File 'lib/message.rb', line 108 def in_reply_to @in_reply_to end |
#message_id ⇒ Object (readonly)
override inflate because expanded messages have some special parameters like In-Reply-To and Message-Id.
107 108 109 |
# File 'lib/message.rb', line 107 def @message_id end |
#references ⇒ Object (readonly)
Returns the value of attribute references.
109 110 111 |
# File 'lib/message.rb', line 109 def references @references end |
Instance Method Details
#inflate(json) ⇒ Object
111 112 113 114 115 116 |
# File 'lib/message.rb', line 111 def inflate(json) super @message_id = json['headers']['Message-Id'] @in_reply_to = json['headers']['In-Reply-To'] @references = json['headers']['References'] end |