Class: PDF::Extractor::Page
- Inherits:
-
Object
- Object
- PDF::Extractor::Page
- Defined in:
- lib/pdf/extractor.rb
Instance Attribute Summary collapse
-
#elements ⇒ Object
readonly
Returns the value of attribute elements.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Page
constructor
A new instance of Page.
Constructor Details
#initialize(params = {}) ⇒ Page
Returns a new instance of Page.
58 59 60 61 62 |
# File 'lib/pdf/extractor.rb', line 58 def initialize(params = {}) @width = params[:width] @height = params[:height] @elements = [] end |
Instance Attribute Details
#elements ⇒ Object (readonly)
Returns the value of attribute elements.
56 57 58 |
# File 'lib/pdf/extractor.rb', line 56 def elements @elements end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
56 57 58 |
# File 'lib/pdf/extractor.rb', line 56 def height @height end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
56 57 58 |
# File 'lib/pdf/extractor.rb', line 56 def width @width end |