Class: ActiveMerchant::Shipping::NewZealandPost::NewZealandPostPackage
- Defined in:
- lib/active_shipping/shipping/carriers/new_zealand_post.rb
Instance Method Summary collapse
-
#initialize(package, api) ⇒ NewZealandPostPackage
constructor
A new instance of NewZealandPostPackage.
- #params ⇒ Object
Constructor Details
#initialize(package, api) ⇒ NewZealandPostPackage
Returns a new instance of NewZealandPostPackage.
196 197 198 199 200 |
# File 'lib/active_shipping/shipping/carriers/new_zealand_post.rb', line 196 def initialize(package, api) @package = package @api = api @params = { :weight => weight, :length => length } end |
Instance Method Details
#params ⇒ Object
202 203 204 |
# File 'lib/active_shipping/shipping/carriers/new_zealand_post.rb', line 202 def params @params.merge(api_params).merge(shape_params) end |