Class: Spree::TrackingNumbers::BaseService
- Inherits:
-
Object
- Object
- Spree::TrackingNumbers::BaseService
- Defined in:
- app/services/spree/tracking_numbers/base_service.rb
Instance Attribute Summary collapse
-
#tracking ⇒ Object
readonly
Returns the value of attribute tracking.
Instance Method Summary collapse
-
#initialize(tracking_number) ⇒ BaseService
constructor
A new instance of BaseService.
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
#tracking ⇒ Object (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 |