module Trackerific

Constants

VERSION

Public Class Methods

env() click to toggle source
# File lib/trackerific/environment.rb, line 3
def env
  @env || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
end
env=(value) click to toggle source
# File lib/trackerific/environment.rb, line 7
def env=(value)
  @env = value
end
track(id) click to toggle source

Looks up which service(s) can track the given ID and tracks it. @param [String] id The package identifier @return [Array, Trackerific::Details] The tracking results @raise [Trackerific::Error] Raised when the server returns an error @api public

# File lib/trackerific.rb, line 22
def track(id)
  Trackerific::Services.find_by_package_id(id).map {|s| s.track(id) }
end