Class: Comment
- Inherits:
-
Object
- Object
- Comment
- Defined in:
- lib/track-r/comment.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#id ⇒ Object
Returns the value of attribute id.
-
#noted_at ⇒ Object
Returns the value of attribute noted_at.
-
#project_id ⇒ Object
Returns the value of attribute project_id.
-
#story_id ⇒ Object
Returns the value of attribute story_id.
-
#text ⇒ Object
Returns the value of attribute text.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Comment
constructor
A new instance of Comment.
Constructor Details
#initialize(options = {}) ⇒ Comment
Returns a new instance of Comment.
4 5 6 7 8 9 10 |
# File 'lib/track-r/comment.rb', line 4 def initialize( = {}) @token = [:token].to_s @project_id = [:project_id] @story_id = [:story_id] @comment = Hpricot([:comment]) build_comment end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
2 3 4 |
# File 'lib/track-r/comment.rb', line 2 def @author end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/track-r/comment.rb', line 2 def id @id end |
#noted_at ⇒ Object
Returns the value of attribute noted_at.
2 3 4 |
# File 'lib/track-r/comment.rb', line 2 def noted_at @noted_at end |
#project_id ⇒ Object
Returns the value of attribute project_id.
2 3 4 |
# File 'lib/track-r/comment.rb', line 2 def project_id @project_id end |
#story_id ⇒ Object
Returns the value of attribute story_id.
2 3 4 |
# File 'lib/track-r/comment.rb', line 2 def story_id @story_id end |
#text ⇒ Object
Returns the value of attribute text.
2 3 4 |
# File 'lib/track-r/comment.rb', line 2 def text @text end |
#token ⇒ Object
Returns the value of attribute token.
2 3 4 |
# File 'lib/track-r/comment.rb', line 2 def token @token end |