Class: PipeDream::Request
- Inherits:
-
Object
- Object
- PipeDream::Request
- Includes:
- Utils
- Defined in:
- lib/pipe_dream/request.rb
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(search_term, options = {}) ⇒ Request
constructor
A new instance of Request.
Methods included from Utils
Constructor Details
#initialize(search_term, options = {}) ⇒ Request
Returns a new instance of Request.
10 11 12 13 14 |
# File 'lib/pipe_dream/request.rb', line 10 def initialize(search_term, = {}) @search_term = search_term @api_key = PipeDream.configuration.api_key @options = camelize_keys() end |
Instance Method Details
#get ⇒ Object
16 17 18 |
# File 'lib/pipe_dream/request.rb', line 16 def get Net::HTTP.get(uri) end |