Class: Sinatra::JsonRpc::Response::Error

Inherits:
Struct
  • Object
show all
Defined in:
lib/sinatra/json_rpc/response.rb

Instance Attribute Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



19
20
21
# File 'lib/sinatra/json_rpc/response.rb', line 19

def code
  @code
end

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



19
20
21
# File 'lib/sinatra/json_rpc/response.rb', line 19

def data
  @data
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



19
20
21
# File 'lib/sinatra/json_rpc/response.rb', line 19

def message
  @message
end