class Docdata::Order::Response
Base class for responses.
Attributes
options[R]
response[R]
Public Class Methods
new(options, response)
click to toggle source
# File lib/docdata/order/response.rb, line 11 def initialize(options, response) @options = options @response = response end
Public Instance Methods
body()
click to toggle source
# File lib/docdata/order/response.rb, line 16 def body response.body end
error_code()
click to toggle source
# File lib/docdata/order/response.rb, line 24 def error_code errors[:error].attributes["code"] if errors end
error_message()
click to toggle source
# File lib/docdata/order/response.rb, line 20 def error_message errors[:error] if errors end