Class: TrackR::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.



5
6
7
8
9
10
11
# File 'lib/track-r/comment.rb', line 5

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.



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

def author
  @author
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#noted_atObject

Returns the value of attribute noted_at.



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

def noted_at
  @noted_at
end

#project_idObject

Returns the value of attribute project_id.



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

def project_id
  @project_id
end

#story_idObject

Returns the value of attribute story_id.



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

def story_id
  @story_id
end

#textObject

Returns the value of attribute text.



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

def text
  @text
end

#tokenObject

Returns the value of attribute token.



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

def token
  @token
end