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: (ContentLayer)
  • page: (Integer)
  • page_end: (Integer)
  • bbox: (BoundingBox)
  • annotations: (Array[TextAnnotation])
  • attributes: (Hash[String, String])


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

def initialize: (id: String, content: NodeContent, ?parent: Integer, children: Array[Integer], content_layer: 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:



903
904
905
# File 'sig/types.rbs', line 903

def annotations
  @annotations
end

#attributesHash[String, String] (readonly)

Returns the value of attribute attributes.

Returns:

  • (Hash[String, String])


904
905
906
# File 'sig/types.rbs', line 904

def attributes
  @attributes
end

#bboxBoundingBox (readonly)

Returns the value of attribute bbox.

Returns:



902
903
904
# File 'sig/types.rbs', line 902

def bbox
  @bbox
end

#childrenArray[Integer] (readonly)

Returns the value of attribute children.

Returns:

  • (Array[Integer])


898
899
900
# File 'sig/types.rbs', line 898

def children
  @children
end

#contentNodeContent (readonly)

Returns the value of attribute content.

Returns:



896
897
898
# File 'sig/types.rbs', line 896

def content
  @content
end

#content_layerContentLayer (readonly)

Returns the value of attribute content_layer.

Returns:



899
900
901
# File 'sig/types.rbs', line 899

def content_layer
  @content_layer
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


895
896
897
# File 'sig/types.rbs', line 895

def id
  @id
end

#pageInteger (readonly)

Returns the value of attribute page.

Returns:

  • (Integer)


900
901
902
# File 'sig/types.rbs', line 900

def page
  @page
end

#page_endInteger (readonly)

Returns the value of attribute page_end.

Returns:

  • (Integer)


901
902
903
# File 'sig/types.rbs', line 901

def page_end
  @page_end
end

#parentInteger (readonly)

Returns the value of attribute parent.

Returns:

  • (Integer)


897
898
899
# File 'sig/types.rbs', line 897

def parent
  @parent
end