Class: Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/track-r/comment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @token = options[:token].to_s
  @project_id = options[:project_id]
  @story_id = options[:story_id]
  @comment = Hpricot(options[:comment])
  build_comment
end

Instance Attribute Details

#authorObject

Returns the value of attribute author.



2
3
4
# File 'lib/track-r/comment.rb', line 2

def author
  @author
end

#idObject

Returns the value of attribute id.



2
3
4
# File 'lib/track-r/comment.rb', line 2

def id
  @id
end

#noted_atObject

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_idObject

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_idObject

Returns the value of attribute story_id.



2
3
4
# File 'lib/track-r/comment.rb', line 2

def story_id
  @story_id
end

#textObject

Returns the value of attribute text.



2
3
4
# File 'lib/track-r/comment.rb', line 2

def text
  @text
end

#tokenObject

Returns the value of attribute token.



2
3
4
# File 'lib/track-r/comment.rb', line 2

def token
  @token
end