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.
212 213 214 215 216 217 |
# File 'lib/meshx-plugin-sdk.rb', line 212 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.
210 211 212 |
# File 'lib/meshx-plugin-sdk.rb', line 210 def destination @destination end |
#error ⇒ Object
Returns the value of attribute error.
210 211 212 |
# File 'lib/meshx-plugin-sdk.rb', line 210 def error @error end |
#exit_code ⇒ Object
Returns the value of attribute exit_code.
210 211 212 |
# File 'lib/meshx-plugin-sdk.rb', line 210 def exit_code @exit_code end |