Class: Ucode::Parsers::DerivedAge::Tuple

Inherits:
Struct
  • Object
show all
Defined in:
lib/ucode/parsers/derived_age.rb

Overview

Lightweight record yielded by ‘.each_record`. Models are heavyweight for stream-only data — the Coordinator consumes these immediately.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ageObject

Returns the value of attribute age

Returns:

  • (Object)

    the current value of age



23
24
25
# File 'lib/ucode/parsers/derived_age.rb', line 23

def age
  @age
end

#cpObject

Returns the value of attribute cp

Returns:

  • (Object)

    the current value of cp



23
24
25
# File 'lib/ucode/parsers/derived_age.rb', line 23

def cp
  @cp
end

Instance Method Details

#cp_idObject



24
25
26
# File 'lib/ucode/parsers/derived_age.rb', line 24

def cp_id
  format("U+%04X", cp)
end