class Paymo::Reports
Public Instance Methods
create(options = {})
click to toggle source
# File lib/paymo/resources/reports.rb, line 4 def create(options = {}) if options[:start] options[:start] = options[:start].strftime('%Y-%m-%d') end if options[:end] options[:end] = options[:end].strftime('%Y-%m-%d') end result = Paymo::API.post :reports, :create, options if result['status'] == 'ok' result end end