Class: PDF::Extractor::Element
- Inherits:
-
Object
- Object
- PDF::Extractor::Element
- Defined in:
- lib/pdf/extractor.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#font ⇒ Object
readonly
Returns the value of attribute font.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#top ⇒ Object
readonly
Returns the value of attribute top.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Element
constructor
A new instance of Element.
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
#content ⇒ Object
Returns the value of attribute content.
27 28 29 |
# File 'lib/pdf/extractor.rb', line 27 def content @content end |
#font ⇒ Object (readonly)
Returns the value of attribute font.
26 27 28 |
# File 'lib/pdf/extractor.rb', line 26 def font @font end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
26 27 28 |
# File 'lib/pdf/extractor.rb', line 26 def height @height end |
#left ⇒ Object (readonly)
Returns the value of attribute left.
26 27 28 |
# File 'lib/pdf/extractor.rb', line 26 def left @left end |
#top ⇒ Object (readonly)
Returns the value of attribute top.
26 27 28 |
# File 'lib/pdf/extractor.rb', line 26 def top @top end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
26 27 28 |
# File 'lib/pdf/extractor.rb', line 26 def width @width end |