Class: Eddy::Elements::I09

Inherits:
Models::Element::TM show all
Defined in:
lib/definitions/elements/manual/i/I09.interchange_time.rb

Overview

Element Summary:

  • Id: I09
  • Name: Interchange Time
  • Type: TM (HHMM)
  • Min/Max: 4/4
  • Description: Time of the interchange

Notes:

  • This element's value will be generated by Eddy.

Instance Attribute Summary

Attributes inherited from Models::Element::TM

#fmt

Attributes inherited from Models::Element::Base

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

Instance Method Summary collapse

Methods inherited from Models::Element::TM

#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)



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

def initialize(val:, req: nil, ref: nil)
  @id = "I09"
  @name = "Interchange Time"
  @description = "Time of the interchange"
  self.fmt = :hhmm
  super(
    min: 4,
    max: 4,
    req: req,
    ref: ref,
    val: val,
  )
end