Class: SimpleShipping::Party
- Inherits:
-
Abstract::Model
- Object
- Abstract::Model
- SimpleShipping::Party
- Defined in:
- lib/simple_shipping/party.rb
Overview
Party is a person or company who takes a part in shipment process. Party is used to represent a shipper or a recipient.
Attributes
-
contact (instance of Contact)
-
address (instance of Address)
-
account_number (optional, but in some cases required)
If one of attributes is missed an appropriate exception will be raised when you build a request.
Instance Attribute Summary collapse
-
#account_number ⇒ Object
Returns the value of attribute account_number.
-
#address ⇒ Object
Returns the value of attribute address.
-
#contact ⇒ Object
Returns the value of attribute contact.
Method Summary
Methods inherited from Abstract::Model
#initialize, set_default_values, validates_submodel
Constructor Details
This class inherits a constructor from SimpleShipping::Abstract::Model
Instance Attribute Details
#account_number ⇒ Object
Returns the value of attribute account_number.
13 14 15 |
# File 'lib/simple_shipping/party.rb', line 13 def account_number @account_number end |
#address ⇒ Object
Returns the value of attribute address.
13 14 15 |
# File 'lib/simple_shipping/party.rb', line 13 def address @address end |
#contact ⇒ Object
Returns the value of attribute contact.
13 14 15 |
# File 'lib/simple_shipping/party.rb', line 13 def contact @contact end |