Class: Cabriolet::Models::FolderData

Inherits:
Object
  • Object
show all
Defined in:
lib/cabriolet/models/folder_data.rb

Overview

FolderData represents a data location span for a folder Folders may span multiple cabinets, so they have a chain of FolderData

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cabinet, offset) ⇒ FolderData

Initialize a new FolderData

Parameters:

  • cabinet (Cabinet)

    Cabinet containing this data

  • offset (Integer)

    Offset within cabinet file to data blocks



14
15
16
17
18
# File 'lib/cabriolet/models/folder_data.rb', line 14

def initialize(cabinet, offset)
  @cabinet = cabinet
  @offset = offset
  @next_data = nil
end

Instance Attribute Details

#cabinetObject

Returns the value of attribute cabinet.



8
9
10
# File 'lib/cabriolet/models/folder_data.rb', line 8

def cabinet
  @cabinet
end

#next_dataObject

Returns the value of attribute next_data.



8
9
10
# File 'lib/cabriolet/models/folder_data.rb', line 8

def next_data
  @next_data
end

#offsetObject

Returns the value of attribute offset.



8
9
10
# File 'lib/cabriolet/models/folder_data.rb', line 8

def offset
  @offset
end