Sha256: 725956d6174fce6d5ffc0ef6e23515dbc61bc2635865c242fd30bbd287e1daf9
Contents?: true
Size: 489 Bytes
Versions: 1
Compression:
Stored size: 489 Bytes
Contents
module Gemgento # @author Gemgento LLC class ShipmentTrack < ActiveRecord::Base belongs_to :shipment, class_name: 'Gemgento::Shipment' has_one :order, through: :shipment, class_name: 'Gemgento::Order' attr_accessor :sync_needed before_create :push_to_magento, if: :sync_needed def push_to_magento return API::SOAP::Sales::OrderShipment.add_track(self) end def tracking_url "https://www.google.com/search?q=#{self.number}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemgento-2.8.0 | app/models/gemgento/shipment_track.rb |