Class: Iloxx::Shipping::DailyTransactionRequest
- Defined in:
- lib/iloxx_shipping/daily_transaction_request.rb
Constant Summary collapse
- REQUEST_TYPE =
:ppvDailyTransactionRequest
Instance Method Summary collapse
- #body(xml) ⇒ Object
-
#initialize(attributes = {}) ⇒ DailyTransactionRequest
constructor
A new instance of DailyTransactionRequest.
Methods inherited from Request
Constructor Details
#initialize(attributes = {}) ⇒ DailyTransactionRequest
Returns a new instance of DailyTransactionRequest.
7 8 9 10 11 |
# File 'lib/iloxx_shipping/daily_transaction_request.rb', line 7 def initialize(attributes = {}) super(attributes) @date = attributes[:date] @type = attributes[:type] end |
Instance Method Details
#body(xml) ⇒ Object
13 14 15 16 |
# File 'lib/iloxx_shipping/daily_transaction_request.rb', line 13 def body(xml) xml.tns :TransactionListDate, @date.strftime("%d.%m.%Y") xml.tns :TransactionListType, @type end |