Class: Gemgento::ShipmentTrack

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/gemgento/shipment_track.rb

Overview

Author:

  • Gemgento LLC

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#sync_neededObject

Returns the value of attribute sync_needed.



9
10
11
# File 'app/models/gemgento/shipment_track.rb', line 9

def sync_needed
  @sync_needed
end

Instance Method Details

#push_to_magentoObject



13
14
15
# File 'app/models/gemgento/shipment_track.rb', line 13

def push_to_magento
  return API::SOAP::Sales::OrderShipment.add_track(self)
end

#tracking_urlObject



17
18
19
# File 'app/models/gemgento/shipment_track.rb', line 17

def tracking_url
  "https://www.google.com/search?q=#{self.number}"
end