Class: Eddy::Elements::E785

Inherits:
Models::Element::B show all
Defined in:
lib/definitions/elements/manual/785.binary_data.rb

Overview

Element Summary:

  • Id: 785
  • Name: Binary Data
  • Type: B
  • Min/Max: 1/?
  • Description: A string of octets which can assume any binary pattern from hexadecimal 00 to FF

Instance Attribute Summary

Attributes inherited from Models::Element::Base

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

Instance Method Summary collapse

Methods inherited from Models::Element::B

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

Parameters:

  • max (Integer)

    Value set in preceeding 784 element.

  • val (String) (defaults to: nil)

    (nil)

  • req (String) (defaults to: nil)

    (nil)

  • ref (String) (defaults to: nil)

    (nil)



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

def initialize(max:, val: nil, req: nil, ref: nil)
  @id = "785"
  @name = "Binary Data"
  @description = "A string of octets which can assume any binary pattern from hexadecimal 00 to FF"
  super(
    min: 1,
    max: max,
    req: req,
    ref: ref,
    val: val,
  )
end