myfreecomm/rexpense-client-ruby

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

Summary

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