Class: AgentXmpp::Error
Overview
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
.….….….….….….….….….….….….….….….….….….….….….….….….….….
-
#error ⇒ Object
readonly
.….….….….….….….….….….….….….….….….….….….….….….….….….….
Instance Method Summary collapse
-
#initialize(error, *args) ⇒ Error
constructor
.….….….….….….….….….….….….….….….….….….….….….….….….….….
-
#method_missing(meth, *args, &blk) ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….….….
-
#responce ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….….….
Constructor Details
#initialize(error, *args) ⇒ Error
.….….….….….….….….….….….….….….….….….….….….….….….….….….
42 43 44 45 |
# File 'lib/agent_xmpp/client/response.rb', line 42 def initialize(error, *args) @error = error.to_sym @args = args end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &blk) ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….….….
53 54 55 |
# File 'lib/agent_xmpp/client/response.rb', line 53 def method_missing(meth, *args, &blk) .send(meth, *args, &blk) end |
Instance Attribute Details
#args ⇒ Object (readonly)
.….….….….….….….….….….….….….….….….….….….….….….….….….….
39 40 41 |
# File 'lib/agent_xmpp/client/response.rb', line 39 def args @args end |
#error ⇒ Object (readonly)
.….….….….….….….….….….….….….….….….….….….….….….….….….….
39 40 41 |
# File 'lib/agent_xmpp/client/response.rb', line 39 def error @error end |
Instance Method Details
#responce ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….….….
48 49 50 |
# File 'lib/agent_xmpp/client/response.rb', line 48 def responce Xmpp::ErrorResponse.send(error, *args) end |