Class: FmRest::Spyke::ScriptResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/fmrest/spyke/spyke_formatter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



18
19
20
# File 'lib/fmrest/spyke/spyke_formatter.rb', line 18

def error
  @error
end

#resultObject

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



18
19
20
# File 'lib/fmrest/spyke/spyke_formatter.rb', line 18

def result
  @result
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


20
# File 'lib/fmrest/spyke/spyke_formatter.rb', line 20

def error?; !success?; end

#success?Boolean

Returns:

  • (Boolean)


19
# File 'lib/fmrest/spyke/spyke_formatter.rb', line 19

def success?; error == "0"; end