Class: BingAdsApi::OperationError

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

[email protected]

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

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.



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

def code
  @code
end

#detailsObject

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_codeObject

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

#messageObject

Returns the value of attribute message.



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

def message
  @message
end

Instance Method Details

#to_sObject

Public : Specified to string method

Author

[email protected]



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

def to_s
	"#{code}:#{error_code} - #{message}. #{details}"
end