Class: Wampproto::Message::Abort
- Defined in:
- lib/wampproto/message/abort.rb
Overview
abort message
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#kwargs ⇒ Object
readonly
Returns the value of attribute kwargs.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(details, reason, *args, **kwargs) ⇒ Abort
constructor
A new instance of Abort.
- #marshal ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(details, reason, *args, **kwargs) ⇒ Abort
Returns a new instance of Abort.
9 10 11 12 13 14 15 |
# File 'lib/wampproto/message/abort.rb', line 9 def initialize(details, reason, *args, **kwargs) super() @details = Validate.hash!("Details", details) @reason = Validate.string!("Reason", reason) @args = Validate.array!("Arguments", args) @kwargs = Validate.hash!("Keyword Arguments", kwargs) end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
7 8 9 |
# File 'lib/wampproto/message/abort.rb', line 7 def args @args end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
7 8 9 |
# File 'lib/wampproto/message/abort.rb', line 7 def details @details end |
#kwargs ⇒ Object (readonly)
Returns the value of attribute kwargs.
7 8 9 |
# File 'lib/wampproto/message/abort.rb', line 7 def kwargs @kwargs end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
7 8 9 |
# File 'lib/wampproto/message/abort.rb', line 7 def reason @reason end |
Class Method Details
.parse(wamp_message) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/wampproto/message/abort.rb', line 24 def self.parse() _type, details, reason, args, kwargs = args ||= [] kwargs ||= {} new(details, reason, *args, **kwargs) end |