class OAS::AdXML::Response
Attributes
error_code[R]
error_text[R]
Public Class Methods
new(doc)
click to toggle source
# File lib/oas/adxml.rb, line 43 def initialize(doc) @doc = doc @error_code = @error_text = nil error = @doc.xpath('.//Exception').first rescue nil if error @error_code = error['errorCode'].to_i @error_text = error.text end end
Public Instance Methods
success?()
click to toggle source
# File lib/oas/adxml.rb, line 53 def success? !error_code end