Class: Response

Inherits:
Object
  • Object
show all
Defined in:
lib/meshx-plugin-sdk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload, error, exit_code) ⇒ Response

Returns a new instance of Response.



203
204
205
206
207
# File 'lib/meshx-plugin-sdk.rb', line 203

def initialize(payload, error, exit_code)
  @payload = payload
  @error = error
  @exit_code = exit_code
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



201
202
203
# File 'lib/meshx-plugin-sdk.rb', line 201

def error
  @error
end

#exit_codeObject

Returns the value of attribute exit_code.



201
202
203
# File 'lib/meshx-plugin-sdk.rb', line 201

def exit_code
  @exit_code
end

#payloadObject

Returns the value of attribute payload.



201
202
203
# File 'lib/meshx-plugin-sdk.rb', line 201

def payload
  @payload
end