Skip to content
Browse files

Added fmt and options to do_query

  • Loading branch information...
1 parent 351412c commit 6736daa638e36babcbc2cc85c0219ab627953932 Artem Kalinchuk committed Mar 12, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/classes/api.rb
View
5 lib/classes/api.rb
@@ -7,8 +7,9 @@ def initialize(connection)
end
# Documentation at http://www.quickbase.com/api-guide/do_query.html
- def do_query(params)
- params.merge!({:fmt => "structured"})
+ def do_query(params, fmt = 'structured', options = '')
+ params.merge!({:fmt => fmt})
+ params.merge!({:options => options})
clist = params[:clist].to_s.split(".")
friendly = params[:friendly].to_s.split(".")
keys = friendly.empty? ? clist : friendly.map(&:to_sym)

0 comments on commit 6736daa

Please sign in to comment.
Something went wrong with that request. Please try again.