Module: Trackerific
- Includes:
- ActiveSupport::Configurable
- Defined in:
- lib/trackerific.rb,
lib/trackerific/soap.rb,
lib/trackerific/error.rb,
lib/trackerific/event.rb,
lib/trackerific/details.rb,
lib/trackerific/parsers.rb,
lib/trackerific/version.rb,
lib/trackerific/builders.rb,
lib/trackerific/services.rb,
lib/trackerific/environment.rb
Defined Under Namespace
Modules: Builders, Parsers, SOAP, Services Classes: Details, Error, Event
Constant Summary collapse
- VERSION =
"0.8.0"
Class Method Summary collapse
- .env ⇒ Object
- .env=(value) ⇒ Object
-
.track(id) ⇒ Array, Trackerific::Details
Looks up which service(s) can track the given ID and tracks it.
Class Method Details
.env ⇒ Object
3 4 5 |
# File 'lib/trackerific/environment.rb', line 3 def env @env || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development' end |
.env=(value) ⇒ Object
7 8 9 |
# File 'lib/trackerific/environment.rb', line 7 def env=(value) @env = value end |
.track(id) ⇒ Array, Trackerific::Details
Looks up which service(s) can track the given ID and tracks it.
22 23 24 |
# File 'lib/trackerific.rb', line 22 def track(id) Trackerific::Services.find_by_package_id(id).map {|s| s.track(id) } end |