class Taobao::TOP::Response
Public Class Methods
from_json(data)
click to toggle source
# File lib/taobao/top/service.rb, line 34 def self.from_json data self.new ActiveSupport::JSON.decode(data) end
from_xml(data)
click to toggle source
# File lib/taobao/top/service.rb, line 38 def self.from_xml data self.new Hash.from_xml(data) end
Public Instance Methods
body()
click to toggle source
# File lib/taobao/top/service.rb, line 42 def body unless error? self[self.keys.first] end end
error()
click to toggle source
# File lib/taobao/top/service.rb, line 52 def error self.error_response if error? end
error?()
click to toggle source
# File lib/taobao/top/service.rb, line 48 def error? self.error_response end