Class: Bamboozled::API::Report

Inherits:
Base
  • Object
show all
Defined in:
lib/bamboozled/api/report.rb

Instance Attribute Summary

Attributes inherited from Base

#api_key, #subdomain

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Bamboozled::API::Base

Instance Method Details

#find(number, format = 'JSON', fd = true) ⇒ Object



5
6
7
# File 'lib/bamboozled/api/report.rb', line 5

def find(number, format = 'JSON', fd = true)
  request(:get, "reports/#{number}?format=#{format.upcase}&fd=#{fd.yesno}")
end