Sha256: 7188a2287968cd0faa76e0499060ddd6f0e62be392584383afc79d54a354f084

Contents?: true

Size: 338 Bytes

Versions: 3

Compression:

Stored size: 338 Bytes

Contents

module Rexpense
  module Entities
    #
    # A wrapper to PreExpense collection
    #
    class PreExpenseCollection < Collection
      def build_collection
        response.parsed_body['pre_expenses'].each do |attributes|
          collection.push(Rexpense::Entities::PreExpense.new(attributes))
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rexpense-2.1.0 lib/rexpense/entities/pre_expense_collection.rb
rexpense-2.0.0 lib/rexpense/entities/pre_expense_collection.rb
rexpense-1.0.0 lib/rexpense/entities/pre_expense_collection.rb