Class: Dhl::Intraship::CODService
- Defined in:
- lib/dhl-intraship/service/cod_service.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#bankdata ⇒ Object
Returns the value of attribute bankdata.
-
#currency ⇒ Object
Returns the value of attribute currency.
Instance Method Summary collapse
Methods inherited from Service
Constructor Details
This class inherits a constructor from Dhl::Intraship::Service
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/dhl-intraship/service/cod_service.rb', line 4 def amount @amount end |
#bankdata ⇒ Object
Returns the value of attribute bankdata.
4 5 6 |
# File 'lib/dhl-intraship/service/cod_service.rb', line 4 def bankdata @bankdata end |
#currency ⇒ Object
Returns the value of attribute currency.
4 5 6 |
# File 'lib/dhl-intraship/service/cod_service.rb', line 4 def currency @currency end |
Instance Method Details
#append_to_xml(xml) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/dhl-intraship/service/cod_service.rb', line 6 def append_to_xml(xml) xml.Service do |xml| xml.ServiceGroupOther do |xml| xml.COD do |xml| xml.CODAmount(amount) xml.CODCurrency(currency) end end end bankdata.append_to_xml(xml) end |