class Lib::TL1::Message::Acknowledgment

Attributes

ack_code[R]
acknowledgment_code[R]
correlation_tag[R]
ctag[R]

Public Class Methods

new(ack_code: nil, ctag: nil) { |self| ... } click to toggle source
# File lib/lib/tl1/message/acknowledgment.rb, line 15
def initialize(ack_code: nil, ctag: nil)
  if block_given?
    yield self
  else
    self.ack_code = ack_code
    self.ctag = ctag
  end
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/lib/tl1/message/acknowledgment.rb, line 24
def <=>(other)
  return nil unless instance_of? other.class

  to_s <=> other.to_s
end
ack_code=(ack_code) click to toggle source
# File lib/lib/tl1/message/acknowledgment.rb, line 35
def ack_code=(ack_code)
  @ack_code = ack_code.is_a?(Field::AcknowledgmentCode) ? ack_code : Field::AcknowledgmentCode.new(ack_code)
end
Also aliased as: acknowledgment_code=
acknowledgment_code=(ack_code)
Alias for: ack_code=
correlation_tag=(ctag)
Alias for: ctag=
ctag=(ctag) click to toggle source
# File lib/lib/tl1/message/acknowledgment.rb, line 41
def ctag=(ctag)
  @ctag = ctag.is_a?(Field::CorrelationTag) ? ctag : Field::CorrelationTag.new(ctag)
end
Also aliased as: correlation_tag=
to_s() click to toggle source
# File lib/lib/tl1/message/acknowledgment.rb, line 30
def to_s
  "#{@ack_code} #{@ctag}\r\n"
end
Also aliased as: to_str
to_str()
Alias for: to_s