lib/onering/api.rb in onering-client-0.0.21 vs lib/onering/api.rb in onering-client-0.0.22
- old
+ new
@@ -66,9 +66,10 @@
end
end
def request(endpoint, options={})
options = @_config.merge(options)
+ options[:method] = options[:method].to_s.downcase.to_sym
request = nil
uri = Addressable::URI.parse("#{@_uri.to_s}/#{endpoint}")
uri.query_values = options[:fields] if options[:fields]