Class: EbayTrader::Request::Error
- Inherits:
-
Struct
- Object
- Struct
- EbayTrader::Request::Error
- Defined in:
- lib/ebay_trader/request.rb
Overview
A Struct wrapper around eBay generated error and warning messages.
Instance Attribute Summary collapse
-
#error_classification ⇒ Object
Returns the value of attribute error_classification.
-
#error_code ⇒ Object
Returns the value of attribute error_code.
-
#long_message ⇒ Object
Returns the value of attribute long_message.
-
#severity_code ⇒ Object
Returns the value of attribute severity_code.
-
#short_message ⇒ Object
Returns the value of attribute short_message.
Instance Method Summary collapse
Instance Attribute Details
#error_classification ⇒ Object
Returns the value of attribute error_classification
21 22 23 |
# File 'lib/ebay_trader/request.rb', line 21 def error_classification @error_classification end |
#error_code ⇒ Object
Returns the value of attribute error_code
21 22 23 |
# File 'lib/ebay_trader/request.rb', line 21 def error_code @error_code end |
#long_message ⇒ Object
Returns the value of attribute long_message
21 22 23 |
# File 'lib/ebay_trader/request.rb', line 21 def @long_message end |
#severity_code ⇒ Object
Returns the value of attribute severity_code
21 22 23 |
# File 'lib/ebay_trader/request.rb', line 21 def severity_code @severity_code end |
#short_message ⇒ Object
Returns the value of attribute short_message
21 22 23 |
# File 'lib/ebay_trader/request.rb', line 21 def @short_message end |
Instance Method Details
#error? ⇒ Boolean
22 |
# File 'lib/ebay_trader/request.rb', line 22 def error?; severity_code == 'Error'; end |
#warning? ⇒ Boolean
23 |
# File 'lib/ebay_trader/request.rb', line 23 def warning?; severity_code == 'Warning'; end |