Class: Eddy::Models::Element::B

Inherits:
Base
  • Object
show all
Defined in:
lib/eddy/models/element/b.rb

Overview

Binary Data. This type only occurs in the BIN segment.

See:

Direct Known Subclasses

Elements::E785

Instance Attribute Summary

Attributes inherited from Base

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#doc_comment, #req, #req=

Constructor Details

#initialize(min:, max:, req: nil, ref: nil, val: nil) ⇒ void

Parameters:

  • min (Integer)
  • max (Integer)
  • req (String) (defaults to: nil)

    (nil)

  • ref (String) (defaults to: nil)

    (nil)

  • val (String) (defaults to: nil)

    (nil)



18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/eddy/models/element/b.rb', line 18

def initialize(
  min:,
  max:,
  req: nil,
  ref: nil,
  val: nil
)
  @type = "B"
  @min = min
  @max = max
  self.req = req
  self.ref = ref
  self.value = val
end

Class Method Details

.process_valueString

Returns:

  • (String)


51
52
53
# File 'lib/eddy/models/element/b.rb', line 51

def self.process_value()
  super()
end

Instance Method Details

#process_valueString

Returns:

  • (String)


46
47
48
# File 'lib/eddy/models/element/b.rb', line 46

def process_value()
  return self.class.process_value()
end

#valueString<Binary>

Returns:

  • (String<Binary>)

Raises:



41
42
43
# File 'lib/eddy/models/element/b.rb', line 41

def value()
  return super()
end

#value=(_arg) ⇒ void

This method returns an undefined value.

Parameters:

  • _arg (Object)

    Whatever is to be assigned to value



35
36
37
# File 'lib/eddy/models/element/b.rb', line 35

def value=(_arg)
  super()
end