Class: Wamp::Type::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/wamp/type/error.rb

Overview

Error Type

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri:, args: [], kwargs: {}, details: {}) ⇒ Error

Returns a new instance of Error.



16
17
18
19
20
21
# File 'lib/wamp/type/error.rb', line 16

def initialize(uri:, args: [], kwargs: {}, details: {})
  @uri = uri
  @args = args
  @kwargs = kwargs
  @details = details
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



14
15
16
# File 'lib/wamp/type/error.rb', line 14

def args
  @args
end

#detailsObject (readonly)

Returns the value of attribute details.



14
15
16
# File 'lib/wamp/type/error.rb', line 14

def details
  @details
end

#kwargsObject (readonly)

Returns the value of attribute kwargs.



14
15
16
# File 'lib/wamp/type/error.rb', line 14

def kwargs
  @kwargs
end

#uriObject (readonly)

Returns the value of attribute uri.



14
15
16
# File 'lib/wamp/type/error.rb', line 14

def uri
  @uri
end