Class: BAI2::Structures::FileHeader
- Inherits:
-
Object
- Object
- BAI2::Structures::FileHeader
- Defined in:
- lib/bai2_ruby/structures/file_header.rb
Instance Attribute Summary collapse
-
#block_size ⇒ Object
readonly
Returns the value of attribute block_size.
-
#file_creation_date ⇒ Object
readonly
Returns the value of attribute file_creation_date.
-
#file_creation_time ⇒ Object
readonly
Returns the value of attribute file_creation_time.
-
#file_id ⇒ Object
readonly
Returns the value of attribute file_id.
-
#physical_record_length ⇒ Object
readonly
Returns the value of attribute physical_record_length.
-
#receiver_id ⇒ Object
readonly
Returns the value of attribute receiver_id.
-
#sender_id ⇒ Object
readonly
Returns the value of attribute sender_id.
-
#version_number ⇒ Object
readonly
Returns the value of attribute version_number.
Instance Method Summary collapse
-
#initialize(sender_id:, receiver_id:, file_creation_date:, file_creation_time:, file_id:, physical_record_length:, block_size:, version_number:) ⇒ FileHeader
constructor
A new instance of FileHeader.
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_size ⇒ Object (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_date ⇒ Object (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_time ⇒ Object (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_id ⇒ Object (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_length ⇒ Object (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_id ⇒ Object (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_id ⇒ Object (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_number ⇒ Object (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 |