Sha256: bc41650e8efaf3589a8ea57321f8d9e0be7e3fbb224a80408b02f7302446aa22

Contents?: true

Size: 410 Bytes

Versions: 9

Compression:

Stored size: 410 Bytes

Contents

module TimeCop
  class ReportBuilder
    attr_reader :client, :user, :start_date, :end_date

    def initialize(client:, user:, start_date:, end_date:)
      @client = client
      @user = user
      @start_date = start_date
      @end_date = end_date
    end

    def generate
      reports.time_by_user(user, start_date, end_date)
    end

    private

    def reports
      client.reports
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
time_cop-0.8.2 lib/time_cop/report_builder.rb
time_cop-0.8.1 lib/time_cop/report_builder.rb
time_cop-0.8.0 lib/time_cop/report_builder.rb
time_cop-0.7.0 lib/time_cop/report_builder.rb
time_cop-0.6.0 lib/time_cop/report_builder.rb
time_cop-0.5.0 lib/time_cop/report_builder.rb
time_cop-0.4.0 lib/time_cop/report_builder.rb
time_cop-0.2.0 lib/time_cop/report_builder.rb
time_cop-0.1.0 lib/time_cop/report_builder.rb