Class: Howard::TrainTrackerGateway
- Inherits:
-
Object
- Object
- Howard::TrainTrackerGateway
- Includes:
- HTTParty
- Defined in:
- lib/howard/train_tracker_gateway.rb
Instance Method Summary collapse
- #arrivals(params) ⇒ Object
-
#initialize(api_key) ⇒ TrainTrackerGateway
constructor
A new instance of TrainTrackerGateway.
Constructor Details
#initialize(api_key) ⇒ TrainTrackerGateway
Returns a new instance of TrainTrackerGateway.
8 9 10 |
# File 'lib/howard/train_tracker_gateway.rb', line 8 def initialize(api_key) self.class.default_params(key: api_key) end |
Instance Method Details
#arrivals(params) ⇒ Object
12 13 14 |
# File 'lib/howard/train_tracker_gateway.rb', line 12 def arrivals(params) self.class.get("/api/1.0/ttarrivals.aspx", params) end |