Class: FileWriteResult
- Inherits:
-
Object
- Object
- FileWriteResult
- Defined in:
- lib/meshx-plugin-sdk.rb
Instance Attribute Summary collapse
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#error ⇒ Object
Returns the value of attribute error.
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
Instance Method Summary collapse
-
#initialize(response) ⇒ FileWriteResult
constructor
A new instance of FileWriteResult.
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
#destination ⇒ Object
Returns the value of attribute destination.
211 212 213 |
# File 'lib/meshx-plugin-sdk.rb', line 211 def destination @destination end |
#error ⇒ Object
Returns the value of attribute error.
211 212 213 |
# File 'lib/meshx-plugin-sdk.rb', line 211 def error @error end |
#exit_code ⇒ Object
Returns the value of attribute exit_code.
211 212 213 |
# File 'lib/meshx-plugin-sdk.rb', line 211 def exit_code @exit_code end |