Class: BingAdsApi::BatchError

Inherits:
DataObject show all
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

[email protected]

Reference : msdn.microsoft.com/en-US/library/bing-ads-overview-batcherror.aspx

Direct Known Subclasses

EditorialError

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

#initialize

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

#codeObject

Returns the value of attribute code.



13
14
15
# File 'lib/bing-ads-api/fault/batch_error.rb', line 13

def code
  @code
end

#detailsObject

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_codeObject

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

#indexObject

Returns the value of attribute index.



13
14
15
# File 'lib/bing-ads-api/fault/batch_error.rb', line 13

def index
  @index
end

#messageObject

Returns the value of attribute message.



13
14
15
# File 'lib/bing-ads-api/fault/batch_error.rb', line 13

def message
  @message
end

#typeObject

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_sObject

Public : Specified to string method

Author

[email protected]



18
19
20
# File 'lib/bing-ads-api/fault/batch_error.rb', line 18

def to_s
	"#{index}:#{code}:#{error_code} - #{message} (#{type})"
end