Class: Xberg::DocumentNode

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDocumentNode

Returns a new instance of DocumentNode.

Parameters:

  • id: (String)
  • content: (NodeContent)
  • parent: (Integer)
  • children: (Array[Integer])
  • content_layer: (enum_ContentLayer)
  • page: (Integer)
  • page_end: (Integer)
  • bbox: (BoundingBox)
  • annotations: (Array[TextAnnotation])
  • attributes: (Hash[String, String])


610
# File 'sig/types.rbs', line 610

def initialize: (id: String, content: NodeContent, ?parent: Integer, children: Array[Integer], content_layer: enum_ContentLayer, ?page: Integer, ?page_end: Integer, ?bbox: BoundingBox, annotations: Array[TextAnnotation], ?attributes: Hash[String, String]) -> void

Instance Attribute Details

#annotationsArray[TextAnnotation] (readonly)

Returns the value of attribute annotations.

Returns:



607
608
609
# File 'sig/types.rbs', line 607

def annotations
  @annotations
end

#attributesHash[String, String]? (readonly)

Returns the value of attribute attributes.

Returns:

  • (Hash[String, String], nil)


608
609
610
# File 'sig/types.rbs', line 608

def attributes
  @attributes
end

#bboxBoundingBox? (readonly)

Returns the value of attribute bbox.

Returns:



606
607
608
# File 'sig/types.rbs', line 606

def bbox
  @bbox
end

#childrenArray[Integer] (readonly)

Returns the value of attribute children.

Returns:

  • (Array[Integer])


602
603
604
# File 'sig/types.rbs', line 602

def children
  @children
end

#contentNodeContent (readonly)

Returns the value of attribute content.

Returns:



600
601
602
# File 'sig/types.rbs', line 600

def content
  @content
end

#content_layerenum_ContentLayer (readonly)

Returns the value of attribute content_layer.

Returns:

  • (enum_ContentLayer)


603
604
605
# File 'sig/types.rbs', line 603

def content_layer
  @content_layer
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


599
600
601
# File 'sig/types.rbs', line 599

def id
  @id
end

#pageInteger? (readonly)

Returns the value of attribute page.

Returns:

  • (Integer, nil)


604
605
606
# File 'sig/types.rbs', line 604

def page
  @page
end

#page_endInteger? (readonly)

Returns the value of attribute page_end.

Returns:

  • (Integer, nil)


605
606
607
# File 'sig/types.rbs', line 605

def page_end
  @page_end
end

#parentInteger? (readonly)

Returns the value of attribute parent.

Returns:

  • (Integer, nil)


601
602
603
# File 'sig/types.rbs', line 601

def parent
  @parent
end