Class: PnoteClient::Documents::Pnote::Concept

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils::StringUtil

#add_line

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

#contentObject (readonly)

Returns the value of attribute content.



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

def content
  @content
end

#titleObject (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