Class: Weese::Requests::Request
- Inherits:
-
Object
- Object
- Weese::Requests::Request
- Defined in:
- lib/weese/requests.rb
Overview
Everything needed to make an HTTP request
Instance Attribute Summary collapse
-
#api_key ⇒ String
WMATA API key.
-
#path ⇒ String
URL.
-
#query ⇒ Hash
Query parameters.
Instance Method Summary collapse
-
#initialize(api_key, path, query) ⇒ Request
constructor
Create a Request.
Constructor Details
#initialize(api_key, path, query) ⇒ Request
Create a Request
25 26 27 28 29 |
# File 'lib/weese/requests.rb', line 25 def initialize(api_key, path, query) @api_key = api_key @path = path @query = query end |
Instance Attribute Details
#api_key ⇒ String
Returns WMATA API key.
12 13 14 |
# File 'lib/weese/requests.rb', line 12 def api_key @api_key end |
#query ⇒ Hash
Returns Query parameters.
16 17 18 |
# File 'lib/weese/requests.rb', line 16 def query @query end |