Class: Ebay::Responses::Base
- Inherits:
-
Object
- Object
- Ebay::Responses::Base
- Includes:
- Types
- Defined in:
- lib/ebay/response/base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #errors? ⇒ Boolean
- #failure? ⇒ Boolean
- #partial_failure? ⇒ Boolean
- #success? ⇒ Boolean
- #warning? ⇒ Boolean
Methods included from Types
Instance Method Details
#errors? ⇒ Boolean
6 7 8 |
# File 'lib/ebay/response/base.rb', line 6 def errors? errors.size > 0 end |
#failure? ⇒ Boolean
18 19 20 |
# File 'lib/ebay/response/base.rb', line 18 def failure? ack == 'Failure' end |
#partial_failure? ⇒ Boolean
22 23 24 |
# File 'lib/ebay/response/base.rb', line 22 def partial_failure? ack == 'PartialFailure' end |
#success? ⇒ Boolean
10 11 12 |
# File 'lib/ebay/response/base.rb', line 10 def success? ack == 'Success' end |
#warning? ⇒ Boolean
14 15 16 |
# File 'lib/ebay/response/base.rb', line 14 def warning? ack == 'Warning' end |