Sha256: 03678aa3ad0e957ac9c2267582a3e06abde68f04972c6cedaf71e819024c5306

Contents?: true

Size: 345 Bytes

Versions: 3

Compression:

Stored size: 345 Bytes

Contents

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