Class: EShipper::Order
- Inherits:
-
EShipperResponse
- Object
- ActiveResource::Base
- EShipperResponse
- EShipper::Order
- Defined in:
- lib/eshipper/classes/order.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.search(options = {}) ⇒ Object
5 6 7 8 |
# File 'lib/eshipper/classes/order.rb', line 5 def self.search( = {}) orders = SearchReply.search().OrderSearchReply.Order orders.is_a?(Array) ? orders : [orders] end |
Instance Method Details
#fetch ⇒ Object
10 11 12 |
# File 'lib/eshipper/classes/order.rb', line 10 def fetch OrderInformationReply.fetch(order_id: self.Id).OrderInformationReply end |