Class: EShipper::OrderInformationReply

Inherits:
EShipperResponse show all
Defined in:
lib/eshipper/responses/order_information_reply.rb

Class Method Summary collapse

Methods inherited from EShipperResponse

decode

Class Method Details

.fetch(options) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/eshipper/responses/order_information_reply.rb', line 5

def self.fetch(options)
  request = EShipper::OrderInformationRequest.new(options)
  response = decode(request.send_now)
  if response["ErrorReply"]
    throw(ErrorReply.new(response))
  else
    new(response)
  end
end