Class: PipeDream::Request

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/pipe_dream/request.rb

Instance Method Summary collapse

Methods included from Utils

#camelize_keys

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, options = {})
  @search_term = search_term
  @api_key     = PipeDream.configuration.api_key
  @options     = camelize_keys(options)
end

Instance Method Details

#getObject



16
17
18
# File 'lib/pipe_dream/request.rb', line 16

def get
  Net::HTTP.get(uri)
end