Class: NiwaTextream::Thread

Inherits:
BaseModel show all
Defined in:
lib/niwa_textream/models/thread.rb

Instance Attribute Summary collapse

Attributes inherited from BaseModel

#elem

Instance Method Summary collapse

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_updatedObject

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_commentObject

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

#titleObject

Returns the value of attribute title.



5
6
7
# File 'lib/niwa_textream/models/thread.rb', line 5

def title
  @title
end