Class: EbayTrader::Request::Error

Inherits:
Struct
  • Object
show all
Defined in:
lib/ebay_trader/request.rb

Overview

A Struct wrapper around eBay generated error and warning messages.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#error_classificationObject

Returns the value of attribute error_classification

Returns:

  • (Object)

    the current value of error_classification



21
22
23
# File 'lib/ebay_trader/request.rb', line 21

def error_classification
  @error_classification
end

#error_codeObject

Returns the value of attribute error_code

Returns:

  • (Object)

    the current value of error_code



21
22
23
# File 'lib/ebay_trader/request.rb', line 21

def error_code
  @error_code
end

#long_messageObject

Returns the value of attribute long_message

Returns:

  • (Object)

    the current value of long_message



21
22
23
# File 'lib/ebay_trader/request.rb', line 21

def long_message
  @long_message
end

#severity_codeObject

Returns the value of attribute severity_code

Returns:

  • (Object)

    the current value of severity_code



21
22
23
# File 'lib/ebay_trader/request.rb', line 21

def severity_code
  @severity_code
end

#short_messageObject

Returns the value of attribute short_message

Returns:

  • (Object)

    the current value of short_message



21
22
23
# File 'lib/ebay_trader/request.rb', line 21

def short_message
  @short_message
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


22
# File 'lib/ebay_trader/request.rb', line 22

def error?;   severity_code == 'Error';   end

#warning?Boolean

Returns:

  • (Boolean)


23
# File 'lib/ebay_trader/request.rb', line 23

def warning?; severity_code == 'Warning'; end