Class: FansWatch::Posting
- Inherits:
-
Object
- Object
- FansWatch::Posting
- Defined in:
- lib/fanswatch/posting.rb
Overview
Single posting on group’s feed
Instance Attribute Summary collapse
-
#attachment ⇒ Object
readonly
Returns the value of attribute attachment.
-
#created_time ⇒ Object
readonly
Returns the value of attribute created_time.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data: nil) ⇒ Posting
constructor
A new instance of Posting.
Constructor Details
#initialize(data: nil) ⇒ Posting
Returns a new instance of Posting.
10 11 12 |
# File 'lib/fanswatch/posting.rb', line 10 def initialize(data: nil) load_data(data) end |
Instance Attribute Details
#attachment ⇒ Object (readonly)
Returns the value of attribute attachment.
8 9 10 |
# File 'lib/fanswatch/posting.rb', line 8 def @attachment end |
#created_time ⇒ Object (readonly)
Returns the value of attribute created_time.
8 9 10 |
# File 'lib/fanswatch/posting.rb', line 8 def created_time @created_time end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/fanswatch/posting.rb', line 8 def id @id end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
8 9 10 |
# File 'lib/fanswatch/posting.rb', line 8 def @message end |