Class: Whatconverts::ErrorChecker
- Inherits:
-
Object
- Object
- Whatconverts::ErrorChecker
- Defined in:
- lib/whatconverts/error_checker.rb
Instance Attribute Summary collapse
-
#api_response ⇒ Object
readonly
Returns the value of attribute api_response.
Instance Method Summary collapse
- #error_if_appropriate ⇒ Object
-
#initialize(api_response) ⇒ ErrorChecker
constructor
A new instance of ErrorChecker.
Constructor Details
#initialize(api_response) ⇒ ErrorChecker
Returns a new instance of ErrorChecker.
6 7 8 |
# File 'lib/whatconverts/error_checker.rb', line 6 def initialize(api_response) @api_response = api_response end |
Instance Attribute Details
#api_response ⇒ Object (readonly)
Returns the value of attribute api_response.
4 5 6 |
# File 'lib/whatconverts/error_checker.rb', line 4 def api_response @api_response end |