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


190
191
192
193
194
# File 'lib/active_shipping/shipping/carriers/new_zealand_post.rb', line 190

def initialize(package, api)
  @package = package
  @api = api
  @params = { :weight => weight, :length => length }
end

Instance Method Details

#paramsObject


196
197
198
# File 'lib/active_shipping/shipping/carriers/new_zealand_post.rb', line 196

def params
  @params.merge(api_params).merge(shape_params)
end