Class: Eddy::Elements::E337

Inherits:
Models::Element::TM show all
Defined in:
lib/definitions/elements/manual/337.time.rb

Overview

Element Summary:

  • Id: 337
  • Name: Time
  • Type: TM
  • Min/Max: 4/8
  • Description: Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)

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: nil, req: nil, ref: nil) ⇒ void

Parameters:

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

    (nil)

  • ref (String) (defaults to: nil)

    (nil)



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/definitions/elements/manual/337.time.rb', line 15

def initialize(val: nil, req: nil, ref: nil)
  @id = "337"
  @name = "Time"
  @description = "Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)"
  self.fmt = :hhmmssdd
  super(
    min: 4,
    max: 8,
    req: req,
    ref: ref,
    val: val,
  )
end