module Novaposhta2
Novaposhta API 2.0 Gem.
Configuration
¶ ↑
Novaposhta2.configure do |config| config.api_key = 'Your api key' config.sender = { ref: 'Sender reference', city: 'City reference', address: 'Sender warehouse reference', contact: 'Sender contact reference', phone: 'Sender phone', } end
Public Class Methods
[](name)
click to toggle source
Returns a city found by name or part of the name. If more than one city match name
- returns nil.
# File lib/novaposhta2.rb, line 39 def self.[](name) City[name] end
track(tracking)
click to toggle source
Returns shipment tracking information by tracking number.
# File lib/novaposhta2.rb, line 44 def self.track(tracking) Package.track(tracking) end