class Eddy::Elements::E333

### Element Summary:

Public Class Methods

new(val: nil, req: nil, ref: nil) click to toggle source

@param val [String] @param req [String] @param ref [String] @return [void]

Calls superclass method Eddy::Models::Element::ID::new
# File lib/definitions/elements/generated/333.terms_basis_date_code.rb, line 16
def initialize(val: nil, req: nil, ref: nil)
  @id = "333"
  @name = "Terms Basis Date Code"
  @description = "Code identifying the beginning of the terms period"
  super(
    min: 1,
    max: 2,
    req: req,
    ref: ref,
    val: val,
  )
end

Public Instance Methods

code_list() click to toggle source

@return [Array<String>]

# File lib/definitions/elements/generated/333.terms_basis_date_code.rb, line 30
def code_list()
  return [
    "1", # Ship Date
    "2", # Delivery Date
    "3", # Invoice Date
    "4", # Specified Date
    "5", # Invoice Receipt Date
    "6", # Anticipated Delivery Date 7 Effective Date
    "7", # Effective Date
  ]
end