Class: ECFS::Document::Page
- Inherits:
-
Object
- Object
- ECFS::Document::Page
- Defined in:
- lib/ecfs/document.rb
Instance Attribute Summary collapse
-
#page_number ⇒ Object
readonly
Returns the value of attribute page_number.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Page
constructor
A new instance of Page.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ Page
Returns a new instance of Page.
33 34 35 36 |
# File 'lib/ecfs/document.rb', line 33 def initialize(params={}) @text = params["text"] @page_number = params["page_number"] end |
Instance Attribute Details
#page_number ⇒ Object (readonly)
Returns the value of attribute page_number.
31 32 33 |
# File 'lib/ecfs/document.rb', line 31 def page_number @page_number end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
30 31 32 |
# File 'lib/ecfs/document.rb', line 30 def text @text end |
Instance Method Details
#inspect ⇒ Object
42 43 44 |
# File 'lib/ecfs/document.rb', line 42 def inspect self.to_s end |
#to_s ⇒ Object
38 39 40 |
# File 'lib/ecfs/document.rb', line 38 def to_s "#<ECFS::Document::Page @text=#{@text.class}, @page_number=#{@page_number}>" end |