Class: RlmLogistics::Record::SalesOrder
- Inherits:
-
Base
- Object
- ActiveRecord::Remote::Base
- Base
- RlmLogistics::Record::SalesOrder
show all
- Defined in:
- lib/rlm_logistics/record/sales_order.rb
Instance Method Summary
collapse
Methods inherited from Base
#credentials, #custom_options
#authenticate
Instance Method Details
#parse(response) ⇒ Object
48
49
50
51
52
53
54
55
|
# File 'lib/rlm_logistics/record/sales_order.rb', line 48
def parse(response)
self.id = if response.data.is_a?(Array)
self.order_numbers = response.data.map(&:to_i)
response.data.first.to_i
else
response.data.to_i
end
end
|
#soap_options ⇒ Object
44
45
46
|
# File 'lib/rlm_logistics/record/sales_order.rb', line 44
def soap_options
super.merge(root: "order")
end
|