class Bamboozled::API::Report
Public Instance Methods
custom(fields, format = "JSON")
click to toggle source
# File lib/bamboozled/api/report.rb, line 9 def custom(fields, format = "JSON") options = { body: "<report>#{FieldCollection.wrap(fields).to_xml}</report>" } response = request(:post, "reports/custom?format=#{format.upcase}", options) response["employees"] end
find(number, format = "JSON", fd_param = true)
click to toggle source
# File lib/bamboozled/api/report.rb, line 5 def find(number, format = "JSON", fd_param = true) request(:get, "reports/#{number}?format=#{format.upcase}&fd=#{fd_param.yesno}") end