Class: Postnhost::ServiceResult
- Inherits:
-
Struct
- Object
- Struct
- Postnhost::ServiceResult
- Defined in:
- app/services/postnhost/service_result.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#status ⇒ Object
Returns the value of attribute status.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors
2 3 4 |
# File 'app/services/postnhost/service_result.rb', line 2 def errors @errors end |
#status ⇒ Object
Returns the value of attribute status
2 3 4 |
# File 'app/services/postnhost/service_result.rb', line 2 def status @status end |
#value ⇒ Object
Returns the value of attribute value
2 3 4 |
# File 'app/services/postnhost/service_result.rb', line 2 def value @value end |
Instance Method Details
#success? ⇒ Boolean
3 4 5 |
# File 'app/services/postnhost/service_result.rb', line 3 def success? errors.blank? end |