Sha256: 8819c564d49deb90825955db29335535d339e26e2605435d0d2ca3ac48d1be53

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

module Paymo
  class Reports

    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

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
paymo-0.0.2 lib/paymo/resources/reports.rb
paymo-0.0.1 lib/paymo/resources/reports.rb