NYULibraries/gather_content-api

View on GitHub
lib/gather_content/api/accounts.rb

Summary

Maintainability
A
0 mins
Test Coverage
module GatherContent
  module Api
    class Accounts < Base
      include Enumerable

      def initialize; end

      def each(&block)
        fetch.each do |account|
          yield GatherContent::Api::Account.new(account['id'], account)
        end
      end

    private

      def params; end

      def path
        @path ||= '/accounts'
      end
    end
  end
end