Module: SimpleInteraction::InstanceMethods

Defined in:
lib/simple_interaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error.



92
93
94
# File 'lib/simple_interaction.rb', line 92

def error
  @error
end

#error_classObject

Returns the value of attribute error_class.



92
93
94
# File 'lib/simple_interaction.rb', line 92

def error_class
  @error_class
end

#resultObject

Returns the value of attribute result.



92
93
94
# File 'lib/simple_interaction.rb', line 92

def result
  @result
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


94
95
96
# File 'lib/simple_interaction.rb', line 94

def success?
  error.nil?
end