Module: Workarea::ShippingCarrierViewModel

Defined in:
app/view_models/workarea/shipping_carrier_view_model.rb

Instance Method Summary collapse

Instance Method Details

#carrierObject



3
4
5
# File 'app/view_models/workarea/shipping_carrier_view_model.rb', line 3

def carrier
  carrier_info.first if model.present?
end


7
8
9
# File 'app/view_models/workarea/shipping_carrier_view_model.rb', line 7

def tracking_link
  "#{carrier_info.last}#{model.tracking_number}" if model.present?
end