Class: ECFS::Document::Page

Inherits:
Object
  • Object
show all
Defined in:
lib/ecfs/document.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_numberObject (readonly)

Returns the value of attribute page_number.



31
32
33
# File 'lib/ecfs/document.rb', line 31

def page_number
  @page_number
end

#textObject (readonly)

Returns the value of attribute text.



30
31
32
# File 'lib/ecfs/document.rb', line 30

def text
  @text
end

Instance Method Details

#inspectObject



42
43
44
# File 'lib/ecfs/document.rb', line 42

def inspect
  self.to_s
end

#to_sObject



38
39
40
# File 'lib/ecfs/document.rb', line 38

def to_s
  "#<ECFS::Document::Page @text=#{@text.class}, @page_number=#{@page_number}>"
end