Class: BingAdsApi::BatchError
- Inherits:
-
DataObject
- Object
- DataObject
- BingAdsApi::BatchError
- Defined in:
- lib/bing-ads-api/fault/batch_error.rb
Overview
Public : Defines an error object that identifies the item within the batch of items in the request message that caused the operation to fail, and describes the reason for the failure.
- Author
Reference : msdn.microsoft.com/en-US/library/bing-ads-overview-batcherror.aspx
Direct Known Subclasses
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.
-
#index ⇒ Object
Returns the value of attribute index.
-
#message ⇒ Object
Returns the value of attribute message.
-
#type ⇒ Object
Returns the value of attribute type.
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.
13 14 15 |
# File 'lib/bing-ads-api/fault/batch_error.rb', line 13 def code @code end |
#details ⇒ Object
Returns the value of attribute details.
13 14 15 |
# File 'lib/bing-ads-api/fault/batch_error.rb', line 13 def details @details end |
#error_code ⇒ Object
Returns the value of attribute error_code.
13 14 15 |
# File 'lib/bing-ads-api/fault/batch_error.rb', line 13 def error_code @error_code end |
#index ⇒ Object
Returns the value of attribute index.
13 14 15 |
# File 'lib/bing-ads-api/fault/batch_error.rb', line 13 def index @index end |
#message ⇒ Object
Returns the value of attribute message.
13 14 15 |
# File 'lib/bing-ads-api/fault/batch_error.rb', line 13 def @message end |
#type ⇒ Object
Returns the value of attribute type.
13 14 15 |
# File 'lib/bing-ads-api/fault/batch_error.rb', line 13 def type @type end |
Instance Method Details
#to_s ⇒ Object
Public : Specified to string method
- Author
18 19 20 |
# File 'lib/bing-ads-api/fault/batch_error.rb', line 18 def to_s "#{index}:#{code}:#{error_code} - #{} (#{type})" end |