Sha256: b63260b51e59d0638bb5ae271b99ce0eca8e64ae1efe0b8ce16b69ab0ae9519f

Contents?: true

Size: 330 Bytes

Versions: 3

Compression:

Stored size: 330 Bytes

Contents

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