Class: SimpleShipping::Party

Inherits:
Abstract::Model show all
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

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_numberObject

Returns the value of attribute account_number.



13
14
15
# File 'lib/simple_shipping/party.rb', line 13

def 
  @account_number
end

#addressObject

Returns the value of attribute address.



13
14
15
# File 'lib/simple_shipping/party.rb', line 13

def address
  @address
end

#contactObject

Returns the value of attribute contact.



13
14
15
# File 'lib/simple_shipping/party.rb', line 13

def contact
  @contact
end