Class: Dhl::Bcs::V2::Communication
- Inherits:
-
Object
- Object
- Dhl::Bcs::V2::Communication
- Includes:
- Buildable
- Defined in:
- lib/dhl/bcs/v2/communication.rb
Constant Summary collapse
- PROPERTIES =
i(phone email contact_person).freeze
Instance Method Summary collapse
Methods included from Buildable
Instance Method Details
#to_soap_hash ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/dhl/bcs/v2/communication.rb', line 9 def to_soap_hash {}.tap do |h| h['cis:phone'] = phone if phone h['cis:email'] = email if email h['cis:contactPerson'] = contact_person if contact_person end end |