Class: Oca::Epak::PickupData
- Inherits:
-
Object
- Object
- Oca::Epak::PickupData
- Defined in:
- lib/oca-epak/pickup_data.rb
Instance Attribute Summary collapse
-
#account_number ⇒ Object
Returns the value of attribute account_number.
-
#pickup ⇒ Object
Returns the value of attribute pickup.
-
#shipments ⇒ Object
Returns the value of attribute shipments.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ PickupData
constructor
Creates a Pickup Data object for creating a pickup order in OCA.
- #to_xml ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ PickupData
Creates a Pickup Data object for creating a pickup order in OCA.
12 13 14 15 16 |
# File 'lib/oca-epak/pickup_data.rb', line 12 def initialize(opts = {}) self.account_number = opts[:account_number] self.pickup = opts[:pickup] self.shipments = opts[:shipments] end |
Instance Attribute Details
#account_number ⇒ Object
Returns the value of attribute account_number.
4 5 6 |
# File 'lib/oca-epak/pickup_data.rb', line 4 def account_number @account_number end |
#pickup ⇒ Object
Returns the value of attribute pickup.
4 5 6 |
# File 'lib/oca-epak/pickup_data.rb', line 4 def pickup @pickup end |
#shipments ⇒ Object
Returns the value of attribute shipments.
4 5 6 |
# File 'lib/oca-epak/pickup_data.rb', line 4 def shipments @shipments end |
Instance Method Details
#to_xml ⇒ Object
18 19 20 |
# File 'lib/oca-epak/pickup_data.rb', line 18 def to_xml or_template.result(binding) end |