Class: Section
- Inherits:
-
Object
- Object
- Section
- Defined in:
- lib/toc_extract/extractor.rb
Instance Attribute Summary collapse
-
#bounding_box ⇒ Object
Returns the value of attribute bounding_box.
-
#id ⇒ Object
Returns the value of attribute id.
-
#page_number ⇒ Object
Returns the value of attribute page_number.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(id, title, page_number) ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(id, title, page_number) ⇒ Section
Returns a new instance of Section.
3 4 5 6 7 |
# File 'lib/toc_extract/extractor.rb', line 3 def initialize(id, title, page_number) @id = id @title = title @page_number = page_number end |
Instance Attribute Details
#bounding_box ⇒ Object
Returns the value of attribute bounding_box.
2 3 4 |
# File 'lib/toc_extract/extractor.rb', line 2 def bounding_box @bounding_box end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/toc_extract/extractor.rb', line 2 def id @id end |
#page_number ⇒ Object
Returns the value of attribute page_number.
2 3 4 |
# File 'lib/toc_extract/extractor.rb', line 2 def page_number @page_number end |
#title ⇒ Object
Returns the value of attribute title.
2 3 4 |
# File 'lib/toc_extract/extractor.rb', line 2 def title @title end |