Class: Yammer::MessageBody
- Inherits:
-
Object
- Object
- Yammer::MessageBody
- Defined in:
- lib/yammer/message_body.rb
Instance Attribute Summary collapse
-
#parsed ⇒ Object
readonly
Returns the value of attribute parsed.
-
#plain ⇒ Object
Returns the value of attribute plain.
-
#rich ⇒ Object
readonly
Returns the value of attribute rich.
-
#urls ⇒ Object
readonly
Returns the value of attribute urls.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ MessageBody
constructor
A new instance of MessageBody.
Constructor Details
#initialize(opts = {}) ⇒ MessageBody
Returns a new instance of MessageBody.
6 7 8 9 10 11 |
# File 'lib/yammer/message_body.rb', line 6 def initialize(opts={}) @plain = opts.fetch(:plain,'') @parsed = opts.fetch(:parsed,'') @rich = opts.fetch(:rich,'') @urls = opts.fetch(:urls,'') end |
Instance Attribute Details
#parsed ⇒ Object (readonly)
Returns the value of attribute parsed.
3 4 5 |
# File 'lib/yammer/message_body.rb', line 3 def parsed @parsed end |
#plain ⇒ Object
Returns the value of attribute plain.
4 5 6 |
# File 'lib/yammer/message_body.rb', line 4 def plain @plain end |
#rich ⇒ Object (readonly)
Returns the value of attribute rich.
3 4 5 |
# File 'lib/yammer/message_body.rb', line 3 def rich @rich end |
#urls ⇒ Object (readonly)
Returns the value of attribute urls.
3 4 5 |
# File 'lib/yammer/message_body.rb', line 3 def urls @urls end |