Class: BingAdsApi::OperationError
- Inherits:
-
DataObject
- Object
- DataObject
- BingAdsApi::OperationError
- Defined in:
- lib/bing-ads-api/fault/operation_error.rb
Overview
Public : Defines an error object that contains the details that explain why the service operation failed.
- Author
Reference : msdn.microsoft.com/en-US/library/bing-ads-overview-operationerror.aspx
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#details ⇒ Object
Returns the value of attribute details.
-
#error_code ⇒ Object
Returns the value of attribute error_code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#to_s ⇒ Object
Public : Specified to string method .
Methods inherited from DataObject
Methods included from SOAPHasheable
#date_to_hash, #get_attribute_key, #normalize_hash_keys, #object_to_hash, #to_hash
Constructor Details
This class inherits a constructor from BingAdsApi::DataObject
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
12 13 14 |
# File 'lib/bing-ads-api/fault/operation_error.rb', line 12 def code @code end |
#details ⇒ Object
Returns the value of attribute details.
12 13 14 |
# File 'lib/bing-ads-api/fault/operation_error.rb', line 12 def details @details end |
#error_code ⇒ Object
Returns the value of attribute error_code.
12 13 14 |
# File 'lib/bing-ads-api/fault/operation_error.rb', line 12 def error_code @error_code end |
#message ⇒ Object
Returns the value of attribute message.
12 13 14 |
# File 'lib/bing-ads-api/fault/operation_error.rb', line 12 def @message end |
Instance Method Details
#to_s ⇒ Object
Public : Specified to string method
- Author
18 19 20 |
# File 'lib/bing-ads-api/fault/operation_error.rb', line 18 def to_s "#{code}:#{error_code} - #{}. #{details}" end |