Class: PnoteClient::Documents::Pnote::Concept
- Inherits:
-
Object
- Object
- PnoteClient::Documents::Pnote::Concept
- Includes:
- Utils::StringUtil
- Defined in:
- lib/pnote_client/documents/pnote/concept.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #add_content(content) ⇒ Object
-
#initialize(title: nil, content: nil) ⇒ Concept
constructor
A new instance of Concept.
- #set_title(title) ⇒ Object
Methods included from Utils::StringUtil
Constructor Details
#initialize(title: nil, content: nil) ⇒ Concept
Returns a new instance of Concept.
11 12 13 14 |
# File 'lib/pnote_client/documents/pnote/concept.rb', line 11 def initialize(title: nil, content: nil) @title = nil @content = nil end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
9 10 11 |
# File 'lib/pnote_client/documents/pnote/concept.rb', line 9 def content @content end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
9 10 11 |
# File 'lib/pnote_client/documents/pnote/concept.rb', line 9 def title @title end |
Instance Method Details
#add_content(content) ⇒ Object
20 21 22 |
# File 'lib/pnote_client/documents/pnote/concept.rb', line 20 def add_content(content) @content = add_line(@content, content) end |
#set_title(title) ⇒ Object
16 17 18 |
# File 'lib/pnote_client/documents/pnote/concept.rb', line 16 def set_title(title) @title = title end |