Class: FmRest::Spyke::ScriptResult
- Inherits:
-
Struct
- Object
- Struct
- FmRest::Spyke::ScriptResult
- Defined in:
- lib/fmrest/spyke/spyke_formatter.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error
18 19 20 |
# File 'lib/fmrest/spyke/spyke_formatter.rb', line 18 def error @error end |
#result ⇒ Object
Returns the value of attribute result
18 19 20 |
# File 'lib/fmrest/spyke/spyke_formatter.rb', line 18 def result @result end |
Instance Method Details
#error? ⇒ Boolean
20 |
# File 'lib/fmrest/spyke/spyke_formatter.rb', line 20 def error?; !success?; end |
#success? ⇒ Boolean
19 |
# File 'lib/fmrest/spyke/spyke_formatter.rb', line 19 def success?; error == "0"; end |