Class: BAI2::Structures::FileHeader

Inherits:
Object
  • Object
show all
Defined in:
lib/bai2_ruby/structures/file_header.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sender_id:, receiver_id:, file_creation_date:, file_creation_time:, file_id:, physical_record_length:, block_size:, version_number:) ⇒ FileHeader

Returns a new instance of FileHeader.



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/bai2_ruby/structures/file_header.rb', line 9

def initialize(sender_id:, receiver_id:, file_creation_date:, file_creation_time:,
               file_id:, physical_record_length:, block_size:, version_number:)
  @sender_id = sender_id
  @receiver_id = receiver_id
  @file_creation_date = file_creation_date
  @file_creation_time = file_creation_time
  @file_id = file_id
  @physical_record_length = physical_record_length
  @block_size = block_size
  @version_number = version_number
end

Instance Attribute Details

#block_sizeObject (readonly)

Returns the value of attribute block_size.



6
7
8
# File 'lib/bai2_ruby/structures/file_header.rb', line 6

def block_size
  @block_size
end

#file_creation_dateObject (readonly)

Returns the value of attribute file_creation_date.



6
7
8
# File 'lib/bai2_ruby/structures/file_header.rb', line 6

def file_creation_date
  @file_creation_date
end

#file_creation_timeObject (readonly)

Returns the value of attribute file_creation_time.



6
7
8
# File 'lib/bai2_ruby/structures/file_header.rb', line 6

def file_creation_time
  @file_creation_time
end

#file_idObject (readonly)

Returns the value of attribute file_id.



6
7
8
# File 'lib/bai2_ruby/structures/file_header.rb', line 6

def file_id
  @file_id
end

#physical_record_lengthObject (readonly)

Returns the value of attribute physical_record_length.



6
7
8
# File 'lib/bai2_ruby/structures/file_header.rb', line 6

def physical_record_length
  @physical_record_length
end

#receiver_idObject (readonly)

Returns the value of attribute receiver_id.



6
7
8
# File 'lib/bai2_ruby/structures/file_header.rb', line 6

def receiver_id
  @receiver_id
end

#sender_idObject (readonly)

Returns the value of attribute sender_id.



6
7
8
# File 'lib/bai2_ruby/structures/file_header.rb', line 6

def sender_id
  @sender_id
end

#version_numberObject (readonly)

Returns the value of attribute version_number.



6
7
8
# File 'lib/bai2_ruby/structures/file_header.rb', line 6

def version_number
  @version_number
end