Class: BAI2::Structures::FileTrailer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_control_total:, number_of_groups:, number_of_records:) ⇒ FileTrailer

Returns a new instance of FileTrailer.



8
9
10
11
12
# File 'lib/bai2_ruby/structures/file_trailer.rb', line 8

def initialize(file_control_total:, number_of_groups:, number_of_records:)
  @file_control_total = file_control_total
  @number_of_groups = number_of_groups
  @number_of_records = number_of_records
end

Instance Attribute Details

#file_control_totalObject (readonly)

Returns the value of attribute file_control_total.



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

def file_control_total
  @file_control_total
end

#number_of_groupsObject (readonly)

Returns the value of attribute number_of_groups.



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

def number_of_groups
  @number_of_groups
end

#number_of_recordsObject (readonly)

Returns the value of attribute number_of_records.



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

def number_of_records
  @number_of_records
end