class Eddy::Elements::E662

### 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/662.relationship_code.rb, line 16
def initialize(val: nil, req: nil, ref: nil)
  @id = "662"
  @name = "Relationship Code"
  @description = "Code indicating the relationship between entities"
  super(
    min: 1,
    max: 1,
    req: req,
    ref: ref,
    val: val,
  )
end

Public Instance Methods

code_list() click to toggle source

@return [Array<String>]

# File lib/definitions/elements/generated/662.relationship_code.rb, line 30
def code_list()
  return [
    "A", # Add
    "D", # Delete
    "I", # Included
    "O", # Information Only
    "S", # Substituted
  ]
end