Sha256: ee9852fdbe55a1af88229170ce856009780d8d0cc2bdde30ac9705c3a4015eef

Contents?: true

Size: 341 Bytes

Versions: 3

Compression:

Stored size: 341 Bytes

Contents

module Rexpense
  module Entities
    #
    # A wrapper to Advancement collection
    #
    class AdvancementCollection < Collection
      def build_collection
        response.parsed_body['advancements'].each do |attributes|
          collection.push(Rexpense::Entities::Advancement.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/advancement_collection.rb
rexpense-2.0.0 lib/rexpense/entities/advancement_collection.rb
rexpense-1.0.0 lib/rexpense/entities/advancement_collection.rb