Class: Bluedart::Tracking
- Inherits:
-
Object
- Object
- Bluedart::Tracking
- Defined in:
- lib/bluedart/tracking.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(details) ⇒ Tracking
constructor
A new instance of Tracking.
- #request ⇒ Object
Constructor Details
#initialize(details) ⇒ Tracking
Returns a new instance of Tracking.
8 9 10 11 12 13 |
# File 'lib/bluedart/tracking.rb', line 8 def initialize(details) @numbers = details[:numbers].join(',') @scans = details[:scans] @license_key = details[:creds][:license_key] @loginid = details[:creds][:login_id] end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/bluedart/tracking.rb', line 6 def response @response end |
Class Method Details
.request_url ⇒ Object
15 16 17 |
# File 'lib/bluedart/tracking.rb', line 15 def self.request_url 'http://www.bluedart.com/servlet/RoutingServlet' end |
Instance Method Details
#request ⇒ Object
19 20 21 |
# File 'lib/bluedart/tracking.rb', line 19 def request @response = make_request end |