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



206
207
208
209
210
# File 'lib/meshx-plugin-sdk.rb', line 206

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.



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

def error
  @error
end

#exit_codeObject

Returns the value of attribute exit_code.



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

def exit_code
  @exit_code
end

#payloadObject

Returns the value of attribute payload.



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

def payload
  @payload
end