class DHL::Ecommerce::StandardAddress
Attributes
address_1[RW]
address_2[RW]
city[RW]
country[RW]
firm[RW]
name[RW]
postal_code[RW]
state[RW]
Public Class Methods
new(attributes = {})
click to toggle source
Calls superclass method
DHL::Ecommerce::Base::new
# File lib/dhl/ecommerce/standard_address.rb, line 6 def initialize(attributes = {}) super attributes unless attributes.empty? @name = attributes[:contact] if attributes[:contact] @name = attributes[:recipient] if attributes[:recipient] @firm = attributes[:account_name] if attributes[:account_name] @firm = attributes[:pickup_name] if attributes[:pickup_name] @address_1 = attributes[:address1] if attributes[:address1] @address_2 = attributes[:address2] if attributes[:address2] end end