Class: PDF::Extractor::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/pdf/extractor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Element

Returns a new instance of Element.



29
30
31
32
33
34
35
36
# File 'lib/pdf/extractor.rb', line 29

def initialize(params = {})
	@top     = params[:top]
	@left    = params[:left]
	@width   = params[:width]
	@height  = params[:height]
	@font    = params[:font]
	@content = params[:content]
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



27
28
29
# File 'lib/pdf/extractor.rb', line 27

def content
  @content
end

#fontObject (readonly)

Returns the value of attribute font.



26
27
28
# File 'lib/pdf/extractor.rb', line 26

def font
  @font
end

#heightObject (readonly)

Returns the value of attribute height.



26
27
28
# File 'lib/pdf/extractor.rb', line 26

def height
  @height
end

#leftObject (readonly)

Returns the value of attribute left.



26
27
28
# File 'lib/pdf/extractor.rb', line 26

def left
  @left
end

#topObject (readonly)

Returns the value of attribute top.



26
27
28
# File 'lib/pdf/extractor.rb', line 26

def top
  @top
end

#widthObject (readonly)

Returns the value of attribute width.



26
27
28
# File 'lib/pdf/extractor.rb', line 26

def width
  @width
end