Class: Spree::TrackingNumbers::BaseService

Inherits:
Object
  • Object
show all
Defined in:
app/services/spree/tracking_numbers/base_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tracking_number) ⇒ BaseService



10
11
12
# File 'app/services/spree/tracking_numbers/base_service.rb', line 10

def initialize(tracking_number)
  @tracking = TrackingNumber.new(tracking_number)
end

Instance Attribute Details

#trackingObject (readonly)

Returns the value of attribute tracking.



14
15
16
# File 'app/services/spree/tracking_numbers/base_service.rb', line 14

def tracking
  @tracking
end