Class: G4sShipping::Address
- Inherits:
-
Object
- Object
- G4sShipping::Address
- Defined in:
- lib/g4s/shipping/default.rb
Overview
/Address
name - SOAP::SOAPString
company - SOAP::SOAPString
address1 - SOAP::SOAPString
address2 - SOAP::SOAPString
city - SOAP::SOAPString
state - SOAP::SOAPString
countryCode - SOAP::SOAPString
zip - SOAP::SOAPString
phone - SOAP::SOAPString
email - SOAP::SOAPString
Instance Attribute Summary collapse
-
#address1 ⇒ Object
Returns the value of attribute address1.
-
#address2 ⇒ Object
Returns the value of attribute address2.
-
#city ⇒ Object
Returns the value of attribute city.
-
#company ⇒ Object
Returns the value of attribute company.
-
#countryCode ⇒ Object
Returns the value of attribute countryCode.
-
#email ⇒ Object
Returns the value of attribute email.
-
#name ⇒ Object
Returns the value of attribute name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#state ⇒ Object
Returns the value of attribute state.
-
#zip ⇒ Object
Returns the value of attribute zip.
Instance Method Summary collapse
-
#initialize(name = nil, company = nil, address1 = nil, address2 = nil, city = nil, state = nil, countryCode = nil, zip = nil, phone = nil, email = nil) ⇒ Address
constructor
A new instance of Address.
Constructor Details
#initialize(name = nil, company = nil, address1 = nil, address2 = nil, city = nil, state = nil, countryCode = nil, zip = nil, phone = nil, email = nil) ⇒ Address
Returns a new instance of Address.
249 250 251 252 253 254 255 256 257 258 259 260 |
# File 'lib/g4s/shipping/default.rb', line 249 def initialize(name = nil, company = nil, address1 = nil, address2 = nil, city = nil, state = nil, countryCode = nil, zip = nil, phone = nil, email = nil) @name = name @company = company @address1 = address1 @address2 = address2 @city = city @state = state @countryCode = countryCode @zip = zip @phone = phone @email = email end |
Instance Attribute Details
#address1 ⇒ Object
Returns the value of attribute address1.
240 241 242 |
# File 'lib/g4s/shipping/default.rb', line 240 def address1 @address1 end |
#address2 ⇒ Object
Returns the value of attribute address2.
241 242 243 |
# File 'lib/g4s/shipping/default.rb', line 241 def address2 @address2 end |
#city ⇒ Object
Returns the value of attribute city.
242 243 244 |
# File 'lib/g4s/shipping/default.rb', line 242 def city @city end |
#company ⇒ Object
Returns the value of attribute company.
239 240 241 |
# File 'lib/g4s/shipping/default.rb', line 239 def company @company end |
#countryCode ⇒ Object
Returns the value of attribute countryCode.
244 245 246 |
# File 'lib/g4s/shipping/default.rb', line 244 def countryCode @countryCode end |
#email ⇒ Object
Returns the value of attribute email.
247 248 249 |
# File 'lib/g4s/shipping/default.rb', line 247 def email @email end |
#name ⇒ Object
Returns the value of attribute name.
238 239 240 |
# File 'lib/g4s/shipping/default.rb', line 238 def name @name end |
#phone ⇒ Object
Returns the value of attribute phone.
246 247 248 |
# File 'lib/g4s/shipping/default.rb', line 246 def phone @phone end |
#state ⇒ Object
Returns the value of attribute state.
243 244 245 |
# File 'lib/g4s/shipping/default.rb', line 243 def state @state end |
#zip ⇒ Object
Returns the value of attribute zip.
245 246 247 |
# File 'lib/g4s/shipping/default.rb', line 245 def zip @zip end |