Class: Msf::Sessions::Modem::Quectel::CmdWaiter
- Inherits:
-
Object
- Object
- Msf::Sessions::Modem::Quectel::CmdWaiter
- Defined in:
- lib/msf/base/sessions/modem/quectel.rb
Overview
Tracks one AT command until completion (OK/ERROR/SEND FAIL)
Instance Attribute Summary collapse
-
#buf ⇒ Object
readonly
Returns the value of attribute buf.
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#ok ⇒ Object
Returns the value of attribute ok.
Instance Method Summary collapse
-
#initialize(cmd) ⇒ CmdWaiter
constructor
A new instance of CmdWaiter.
Constructor Details
#initialize(cmd) ⇒ CmdWaiter
Returns a new instance of CmdWaiter.
27 28 29 30 31 32 |
# File 'lib/msf/base/sessions/modem/quectel.rb', line 27 def initialize(cmd) @cmd = cmd @event = Concurrent::Event.new @buf = [] @ok = false end |
Instance Attribute Details
#buf ⇒ Object (readonly)
Returns the value of attribute buf.
24 25 26 |
# File 'lib/msf/base/sessions/modem/quectel.rb', line 24 def buf @buf end |
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
24 25 26 |
# File 'lib/msf/base/sessions/modem/quectel.rb', line 24 def cmd @cmd end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
24 25 26 |
# File 'lib/msf/base/sessions/modem/quectel.rb', line 24 def event @event end |
#ok ⇒ Object
Returns the value of attribute ok.
25 26 27 |
# File 'lib/msf/base/sessions/modem/quectel.rb', line 25 def ok @ok end |