Class: NiwaTextream::Thread
- Defined in:
- lib/niwa_textream/models/thread.rb
Instance Attribute Summary collapse
-
#last_updated ⇒ Object
Returns the value of attribute last_updated.
-
#num_comment ⇒ Object
Returns the value of attribute num_comment.
-
#title ⇒ Object
Returns the value of attribute title.
Attributes inherited from BaseModel
Instance Method Summary collapse
-
#initialize(elem, title, num_comment, last_updated) ⇒ Thread
constructor
A new instance of Thread.
Constructor Details
#initialize(elem, title, num_comment, last_updated) ⇒ Thread
Returns a new instance of Thread.
10 11 12 13 14 15 |
# File 'lib/niwa_textream/models/thread.rb', line 10 def initialize(elem, title, num_comment, last_updated) @elem = elem @title = title @num_comment = num_comment @last_updated = last_updated end |
Instance Attribute Details
#last_updated ⇒ Object
Returns the value of attribute last_updated.
5 6 7 |
# File 'lib/niwa_textream/models/thread.rb', line 5 def last_updated @last_updated end |
#num_comment ⇒ Object
Returns the value of attribute num_comment.
5 6 7 |
# File 'lib/niwa_textream/models/thread.rb', line 5 def num_comment @num_comment end |
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/niwa_textream/models/thread.rb', line 5 def title @title end |