Class: FileWriteResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ FileWriteResult

Returns a new instance of FileWriteResult.



213
214
215
216
217
218
# File 'lib/meshx-plugin-sdk.rb', line 213

def initialize(response)
  @error = response.error
  @exit_code = response.exit_code
  hash = JSON.parse(response.payload)
  @destination = hash["destination"]
end

Instance Attribute Details

#destinationObject

Returns the value of attribute destination.



211
212
213
# File 'lib/meshx-plugin-sdk.rb', line 211

def destination
  @destination
end

#errorObject

Returns the value of attribute error.



211
212
213
# File 'lib/meshx-plugin-sdk.rb', line 211

def error
  @error
end

#exit_codeObject

Returns the value of attribute exit_code.



211
212
213
# File 'lib/meshx-plugin-sdk.rb', line 211

def exit_code
  @exit_code
end