Class: Gemgento::ShipmentTrack
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Gemgento::ShipmentTrack
- Defined in:
- app/models/gemgento/shipment_track.rb
Overview
Instance Attribute Summary collapse
-
#sync_needed ⇒ Object
Returns the value of attribute sync_needed.
Instance Method Summary collapse
Instance Attribute Details
#sync_needed ⇒ Object
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_magento ⇒ Object
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_url ⇒ Object
17 18 19 |
# File 'app/models/gemgento/shipment_track.rb', line 17 def tracking_url "https://www.google.com/search?q=#{self.number}" end |