Class: Glabssms::ErrorResult
- Inherits:
-
Object
- Object
- Glabssms::ErrorResult
- Defined in:
- lib/glabssms/error_result.rb
Overview
This class is used as a response object when any of our calls to Globe Labs fail
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ErrorResult
constructor
A new instance of ErrorResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(errors) ⇒ ErrorResult
Returns a new instance of ErrorResult.
9 10 11 |
# File 'lib/glabssms/error_result.rb', line 9 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
7 8 9 |
# File 'lib/glabssms/error_result.rb', line 7 def errors @errors end |
Instance Method Details
#success? ⇒ Boolean
13 14 15 |
# File 'lib/glabssms/error_result.rb', line 13 def success? false end |