Class: PnoteClient::Documents::Pnote::TeacherComment
- Inherits:
-
Object
- Object
- PnoteClient::Documents::Pnote::TeacherComment
- Includes:
- Utils::StringUtil
- Defined in:
- lib/pnote_client/documents/pnote/teacher_comment.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#show_time ⇒ Object
Returns the value of attribute show_time.
Instance Method Summary collapse
- #add_content_line(new_line) ⇒ Object
-
#initialize(content: nil, show_time: 0) ⇒ TeacherComment
constructor
A new instance of TeacherComment.
Methods included from Utils::StringUtil
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
#content ⇒ Object
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_time ⇒ Object
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 |