Class: PnoteClient::Documents::Pnote::TeacherComment

Inherits:
Object
  • Object
show all
Includes:
Utils::StringUtil
Defined in:
lib/pnote_client/documents/pnote/teacher_comment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils::StringUtil

#add_line

Constructor Details

#initialize(index) ⇒ TeacherComment

Returns a new instance of TeacherComment.



11
12
13
14
# File 'lib/pnote_client/documents/pnote/teacher_comment.rb', line 11

def initialize(index)
  @index = index
  @content = nil
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



9
10
11
# File 'lib/pnote_client/documents/pnote/teacher_comment.rb', line 9

def content
  @content
end

#indexObject

Returns the value of attribute index.



9
10
11
# File 'lib/pnote_client/documents/pnote/teacher_comment.rb', line 9

def index
  @index
end

Instance Method Details

#add_content_line(new_line) ⇒ Object



16
17
18
# File 'lib/pnote_client/documents/pnote/teacher_comment.rb', line 16

def add_content_line(new_line)
  @content = add_line(@content, new_line)
end