Class: FaceControl::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/face_control/comment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Comment



5
6
7
8
9
# File 'lib/face_control/comment.rb', line 5

def initialize(options)
  self.file = options.fetch(:file)
  self.line = options.fetch(:line)
  self.text = options.fetch(:text)
end

Instance Attribute Details

#fileObject

Returns the value of attribute file.



3
4
5
# File 'lib/face_control/comment.rb', line 3

def file
  @file
end

#lineObject

Returns the value of attribute line.



3
4
5
# File 'lib/face_control/comment.rb', line 3

def line
  @line
end

#textObject

Returns the value of attribute text.



3
4
5
# File 'lib/face_control/comment.rb', line 3

def text
  @text
end