myfreecomm/rexpense-client-ruby

View on GitHub
lib/rexpense/entities/reimbursement_collection.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Rexpense
  module Entities
    #
    # A wrapper to Reimbursement collection
    #
    class ReimbursementCollection < Collection
      def build_collection
        response.parsed_body['reimbursements'].each do |attributes|
          collection.push(Rexpense::Entities::Reimbursement.new(attributes))
        end
      end
    end
  end
end