class Dhl::Bcs::V2::Service

Constants

PROPERTIES

Public Instance Methods

to_soap_hash() click to toggle source
# File lib/dhl/bcs/v2/service.rb, line 9
def to_soap_hash
  # make a self closing tag by appending "/" if no children
  tag_name = children ? name : "#{name}/"
  { tag_name => children, attributes!: { tag_name => attributes } }
end