Class: Pwnix::Api::Client::ErrorQueue
- Inherits:
-
Object
- Object
- Pwnix::Api::Client::ErrorQueue
- Includes:
- Singleton
- Defined in:
- lib/pwnix-api-client/api_client.rb
Instance Attribute Summary collapse
-
#queue ⇒ Object
Returns the value of attribute queue.
Instance Method Summary collapse
- #clear ⇒ Object
-
#initialize ⇒ ErrorQueue
constructor
A new instance of ErrorQueue.
Constructor Details
#initialize ⇒ ErrorQueue
Returns a new instance of ErrorQueue.
43 44 45 |
# File 'lib/pwnix-api-client/api_client.rb', line 43 def initialize @queue =[] end |
Instance Attribute Details
#queue ⇒ Object
Returns the value of attribute queue.
41 42 43 |
# File 'lib/pwnix-api-client/api_client.rb', line 41 def queue @queue end |
Instance Method Details
#clear ⇒ Object
47 48 49 |
# File 'lib/pwnix-api-client/api_client.rb', line 47 def clear @queue = [] end |