Class: Iloxx::Shipping::DailyTransactionRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/iloxx_shipping/daily_transaction_request.rb

Constant Summary collapse

REQUEST_TYPE =
:ppvDailyTransactionRequest

Instance Method Summary collapse

Methods inherited from Request

#build!

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