class Eddy::Models::Element::B
Binary Data
. This type only occurs in the BIN segment.
See:
-
[Maximum Length of Binary
Data
Element
- X12 RFI](www.x12.org/rfis/Maximum%20Length%20of%20Binary%20Data%20Element.pdf)
Public Class Methods
new( min:, max:, req: nil, ref: nil, val: nil )
click to toggle source
@param min [Integer] @param max [Integer] @param req [String] (nil) @param ref [String] (nil) @param val [String] (nil) @return [void]
# 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
process_value()
click to toggle source
@return [String]
Calls superclass method
# File lib/eddy/models/element/b.rb, line 51 def self.process_value() super() end
Public Instance Methods
process_value()
click to toggle source
@return [String]
# File lib/eddy/models/element/b.rb, line 46 def process_value() return self.class.process_value() end
value()
click to toggle source
@raise [Eddy::Errors::ElementNilValueError] If the element is required and no value has been set. @return [String<Binary>]
Calls superclass method
# File lib/eddy/models/element/b.rb, line 41 def value() return super() end
value=(_arg)
click to toggle source
@param _arg [Object] Whatever is to be assigned to `value` @return [void]
Calls superclass method
# File lib/eddy/models/element/b.rb, line 35 def value=(_arg) super() end