Class: Oceanarium::Request

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/oceanarium/request.rb

Instance Method Summary collapse

Instance Method Details

#get(path, options = {}) ⇒ Object



9
10
11
12
# File 'lib/oceanarium/request.rb', line 9

def get(path, options={})
  options.merge!({:client_id => Oceanarium::Config.client_id.to_s, :api_key => Oceanarium::Config.api_key.to_s})
  self.class.get(path, :query => options)
end