Class: Asciidoctor::ConfluencePublisher::Model::Page
- Defined in:
- lib/asciidoctor/confluence_publisher/model/page.rb
Instance Attribute Summary collapse
-
#ancestors ⇒ Object
Returns the value of attribute ancestors.
-
#id ⇒ Object
Returns the value of attribute id.
-
#space ⇒ Object
Returns the value of attribute space.
-
#title ⇒ Object
Returns the value of attribute title.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Asciidoctor::ConfluencePublisher::Model::Base
Instance Attribute Details
#ancestors ⇒ Object
Returns the value of attribute ancestors.
6 7 8 |
# File 'lib/asciidoctor/confluence_publisher/model/page.rb', line 6 def ancestors @ancestors end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/asciidoctor/confluence_publisher/model/page.rb', line 5 def id @id end |
#space ⇒ Object
Returns the value of attribute space.
6 7 8 |
# File 'lib/asciidoctor/confluence_publisher/model/page.rb', line 6 def space @space end |
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/asciidoctor/confluence_publisher/model/page.rb', line 5 def title @title end |
#version ⇒ Object
Returns the value of attribute version.
6 7 8 |
# File 'lib/asciidoctor/confluence_publisher/model/page.rb', line 6 def version @version end |
Instance Method Details
#contain_ancestor?(ancestor_id) ⇒ Boolean
20 21 22 |
# File 'lib/asciidoctor/confluence_publisher/model/page.rb', line 20 def contain_ancestor?(ancestor_id) @ancestors.any? { |ancestor| ancestor.id == ancestor_id.to_s } end |