Class: ForwardMX::Result
- Inherits:
-
Object
- Object
- ForwardMX::Result
- Defined in:
- lib/ForwardMX.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#ok ⇒ Object
Returns the value of attribute ok.
-
#success ⇒ Object
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(data) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(data) ⇒ Result
Returns a new instance of Result.
11 12 13 14 15 |
# File 'lib/ForwardMX.rb', line 11 def initialize data @ok = data['ok'] @error = data['error'] @success = @ok.nil? ? false : true end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
10 11 12 |
# File 'lib/ForwardMX.rb', line 10 def error @error end |
#ok ⇒ Object
Returns the value of attribute ok.
10 11 12 |
# File 'lib/ForwardMX.rb', line 10 def ok @ok end |
#success ⇒ Object
Returns the value of attribute success.
10 11 12 |
# File 'lib/ForwardMX.rb', line 10 def success @success end |