Class: Enklawa::Api::ForumThread
- Inherits:
-
Struct
- Object
- Struct
- Enklawa::Api::ForumThread
- Defined in:
- lib/enklawa/api/forum_thread.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#content ⇒ Object
Returns the value of attribute content.
-
#id ⇒ Object
Returns the value of attribute id.
-
#link ⇒ Object
Returns the value of attribute link.
-
#pub_date ⇒ Object
Returns the value of attribute pub_date.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author
3 4 5 |
# File 'lib/enklawa/api/forum_thread.rb', line 3 def end |
#content ⇒ Object
Returns the value of attribute content
3 4 5 |
# File 'lib/enklawa/api/forum_thread.rb', line 3 def content @content end |
#id ⇒ Object
Returns the value of attribute id
3 4 5 |
# File 'lib/enklawa/api/forum_thread.rb', line 3 def id @id end |
#link ⇒ Object
Returns the value of attribute link
3 4 5 |
# File 'lib/enklawa/api/forum_thread.rb', line 3 def link @link end |
#pub_date ⇒ Object
Returns the value of attribute pub_date
3 4 5 |
# File 'lib/enklawa/api/forum_thread.rb', line 3 def pub_date @pub_date end |
#title ⇒ Object
Returns the value of attribute title
3 4 5 |
# File 'lib/enklawa/api/forum_thread.rb', line 3 def title @title end |
Instance Method Details
#to_h ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/enklawa/api/forum_thread.rb', line 5 def to_h { id: id, title: title, content: content, pub_date: pub_date.utc.iso8601, link: link, author: } end |