Class: ActiveMerchant::Shipping::NewZealandPost::NewZealandPostPackage

Inherits:
Object
  • Object
show all
Defined in:
lib/active_shipping/shipping/carriers/new_zealand_post.rb

Instance Method Summary collapse

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

#paramsObject



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