Class: Asciidoctor::ConfluencePublisher::Model::Page

Inherits:
Base
  • Object
show all
Defined in:
lib/asciidoctor/confluence_publisher/model/page.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_s

Constructor Details

This class inherits a constructor from Asciidoctor::ConfluencePublisher::Model::Base

Instance Attribute Details

#ancestorsObject

Returns the value of attribute ancestors.



6
7
8
# File 'lib/asciidoctor/confluence_publisher/model/page.rb', line 6

def ancestors
  @ancestors
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/asciidoctor/confluence_publisher/model/page.rb', line 5

def id
  @id
end

#spaceObject

Returns the value of attribute space.



6
7
8
# File 'lib/asciidoctor/confluence_publisher/model/page.rb', line 6

def space
  @space
end

#titleObject

Returns the value of attribute title.



5
6
7
# File 'lib/asciidoctor/confluence_publisher/model/page.rb', line 5

def title
  @title
end

#versionObject

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

Returns:

  • (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