Class: Cabriolet::Models::OABPatchBlockHeader

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

Overview

OAB block header for patch files

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(patch_size:, target_size:, source_size:, crc:) ⇒ OABPatchBlockHeader

Returns a new instance of OABPatchBlockHeader.



87
88
89
90
91
92
# File 'lib/cabriolet/models/oab_header.rb', line 87

def initialize(patch_size:, target_size:, source_size:, crc:)
  @patch_size = patch_size
  @target_size = target_size
  @source_size = source_size
  @crc = crc
end

Instance Attribute Details

#crcObject

Returns the value of attribute crc.



85
86
87
# File 'lib/cabriolet/models/oab_header.rb', line 85

def crc
  @crc
end

#patch_sizeObject

Returns the value of attribute patch_size.



85
86
87
# File 'lib/cabriolet/models/oab_header.rb', line 85

def patch_size
  @patch_size
end

#source_sizeObject

Returns the value of attribute source_size.



85
86
87
# File 'lib/cabriolet/models/oab_header.rb', line 85

def source_size
  @source_size
end

#target_sizeObject

Returns the value of attribute target_size.



85
86
87
# File 'lib/cabriolet/models/oab_header.rb', line 85

def target_size
  @target_size
end