Class: Section

Inherits:
Object
  • Object
show all
Defined in:
lib/toc_extract/extractor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_boxObject

Returns the value of attribute bounding_box.



2
3
4
# File 'lib/toc_extract/extractor.rb', line 2

def bounding_box
  @bounding_box
end

#idObject

Returns the value of attribute id.



2
3
4
# File 'lib/toc_extract/extractor.rb', line 2

def id
  @id
end

#page_numberObject

Returns the value of attribute page_number.



2
3
4
# File 'lib/toc_extract/extractor.rb', line 2

def page_number
  @page_number
end

#titleObject

Returns the value of attribute title.



2
3
4
# File 'lib/toc_extract/extractor.rb', line 2

def title
  @title
end