Class: Oca::Epak::PickupData
- Inherits:
-
Object
- Object
- Oca::Epak::PickupData
- Defined in:
- lib/oca-epak/pickup_data.rb
Constant Summary collapse
- PATH_TO_XML =
File.("../retiro.xml.erb", __FILE__).freeze
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.
14 15 16 17 18 |
# File 'lib/oca-epak/pickup_data.rb', line 14 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.
6 7 8 |
# File 'lib/oca-epak/pickup_data.rb', line 6 def account_number @account_number end |
#pickup ⇒ Object
Returns the value of attribute pickup.
6 7 8 |
# File 'lib/oca-epak/pickup_data.rb', line 6 def pickup @pickup end |
#shipments ⇒ Object
Returns the value of attribute shipments.
6 7 8 |
# File 'lib/oca-epak/pickup_data.rb', line 6 def shipments @shipments end |
Instance Method Details
#to_xml ⇒ Object
20 21 22 |
# File 'lib/oca-epak/pickup_data.rb', line 20 def to_xml or_template.result(binding) end |