Class: Eddy::Elements::I08

Inherits:
Models::Element::DT show all
Defined in:
lib/definitions/elements/manual/i/I08.interchange_date.rb

Overview

Element Summary:

  • Id: I08
  • Name: Interchange Date
  • Type: DT (YYMMDD)
  • Min/Max: 6/6
  • Description: Date of the interchange

Notes:

This element's value will be generated by Eddy. No call to value= is needed.

Instance Attribute Summary

Attributes inherited from Models::Element::DT

#fmt

Attributes inherited from Models::Element::Base

#description, #id, #max, #min, #name, #ref, #type

Instance Method Summary collapse

Methods inherited from Models::Element::DT

#accepted_formats, #determine_format, #process_value, process_value, #value, #value=

Methods inherited from Models::Element::Base

#doc_comment, #process_value, process_value, #req, #req=, #value, #value=

Constructor Details

#initialize(val:, req: nil, ref: nil) ⇒ void

Parameters:

  • val (Time)
  • req (String) (defaults to: nil)

    (nil)

  • ref (String) (defaults to: nil)

    (nil)



20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/definitions/elements/manual/i/I08.interchange_date.rb', line 20

def initialize(val:, req: nil, ref: nil)
  @id = "I08"
  @name = "Interchange Date"
  @description = "Date of the interchange"
  self.fmt = :yymmdd
  super(
    min: 6,
    max: 6,
    req: req,
    ref: ref,
    val: val,
  )
end