Class: Dhl::Bcs::V2::Communication

Inherits:
Object
  • Object
show all
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

included, #initialize

Instance Method Details

#to_soap_hashObject



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