class Lib::TL1::Message::Input
Attributes
access_identifier[R]
aid[R]
command[R]
command_verb[R]
correlation_tag[R]
ctag[R]
gb[R]
general_block[R]
payload[R]
target_identifier[R]
tid[R]
verb[R]
Public Class Methods
new(command: nil, tid: nil, aid: nil, ctag: nil, gb: nil, payload: nil) { |self| ... }
click to toggle source
# File lib/lib/tl1/message/input.rb, line 16 def initialize(command: nil, tid: nil, aid: nil, ctag: nil, gb: nil, payload: nil) if block_given? yield self else self.command = command self.tid = tid self.aid = aid self.ctag = ctag self.gb = gb self.payload = payload end end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/lib/tl1/message/input.rb, line 29 def <=>(other) return nil unless instance_of? other.class to_s <=> other.to_s end
aid=(aid)
click to toggle source
# File lib/lib/tl1/message/input.rb, line 54 def aid=(aid) @aid = aid.is_a?(Field::AccessIdentifier) ? aid : Field::AccessIdentifier.new(aid) end
Also aliased as: access_identifier=
command=(command)
click to toggle source
# File lib/lib/tl1/message/input.rb, line 40 def command=(command) @command = command.is_a?(Field::CommandVerb) ? command : Field::CommandVerb.new(command) end
Also aliased as: command_verb=, verb=
ctag=(ctag)
click to toggle source
# File lib/lib/tl1/message/input.rb, line 60 def ctag=(ctag) @ctag = ctag.is_a?(Field::CorrelationTag) ? ctag : Field::CorrelationTag.new(ctag) end
Also aliased as: correlation_tag=
gb=(gb)
click to toggle source
# File lib/lib/tl1/message/input.rb, line 66 def gb=(gb) @gb = gb.is_a?(Field::GeneralBlock) ? gb : Field::GeneralBlock.new(gb) end
Also aliased as: general_block=
payload=(payload)
click to toggle source
# File lib/lib/tl1/message/input.rb, line 72 def payload=(payload) @payload = payload.is_a?(Field::Payload) ? payload : Field::Payload.new(payload) end
tid=(tid)
click to toggle source
# File lib/lib/tl1/message/input.rb, line 48 def tid=(tid) @tid = tid.is_a?(Field::TargetIdentifier) ? tid : Field::TargetIdentifier.new(tid) end
Also aliased as: target_identifier=
to_s()
click to toggle source
# File lib/lib/tl1/message/input.rb, line 35 def to_s "#{command}:#{tid}:#{aid}:#{ctag}:#{gb}:#{payload};" end
Also aliased as: to_str