Class: Trackerific::Service
- Inherits:
-
Object
- Object
- Trackerific::Service
- Includes:
- OptionsHelper
- Defined in:
- lib/trackerific/service.rb
Overview
Base class for Trackerific services
Class Method Summary (collapse)
-
+ (Array, Regexp) package_id_matchers
An Array of Regexp that matches valid package identifiers for your service.
-
+ (Array) required_options
An array of options that are required to create a new instance of this class.
Instance Method Summary (collapse)
-
- (Service) initialize(options = {})
constructor
Private
Creates a new instance of Trackerific::Service with required options.
-
- (Trackerific::Details) track_package(package_id)
Gets the tracking information for the package from the server.
Methods included from OptionsHelper
Constructor Details
- (Service) initialize(options = {})
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Creates a new instance of Trackerific::Service with required options
8 9 10 11 |
# File 'lib/trackerific/service.rb', line 8 def initialize( = {}) , self.class. @options = end |
Class Method Details
+ (Array, Regexp) package_id_matchers
An Array of Regexp that matches valid package identifiers for your service
46 47 48 |
# File 'lib/trackerific/service.rb', line 46 def package_id_matchers nil end |
+ (Array) required_options
An array of options that are required to create a new instance of this class
61 62 63 |
# File 'lib/trackerific/service.rb', line 61 def [] end |
Instance Method Details
- (Trackerific::Details) track_package(package_id)
Gets the tracking information for the package from the server
29 30 31 |
# File 'lib/trackerific/service.rb', line 29 def track_package(package_id) @package_id = package_id end |