Class: LcApi::API
- Inherits:
-
Object
show all
- Defined in:
- lib/lc-api/api.rb
Defined Under Namespace
Classes: BadGateway, BadRequest, Forbidden, GatewayTimeout, Gone, InternalServerError, NotFound, ResponseError, ServiceUnavailable, Unauthorized
Class Method Summary
collapse
Class Method Details
.get(uri, options) ⇒ Object
6
7
8
9
10
11
|
# File 'lib/lc-api/api.rb', line 6
def get(uri, options)
uri = LcApi.base_uri + uri
opts = ""
options.each { |k,v| opts << "&#{k}=#{(v.is_a?(Array) ? v.join(",") : v)}" }
HTTParty.get("#{uri}?key=#{LcApi.key}#{opts}")
end
|