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(content: nil, show_time: 0) ⇒ TeacherComment

Returns a new instance of TeacherComment.



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

def initialize(content: nil, show_time: 0)
  @show_time = show_time
  @content = content
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

#show_timeObject

Returns the value of attribute show_time.



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

def show_time
  @show_time
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