Class: EShipper::SearchReply

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

Class Method Summary collapse

Methods inherited from EShipperResponse

decode

Class Method Details

.search(options) ⇒ Object



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

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