module Ecoportal module API class Internal class PolicyGroups include Enumerable attr_reader :client def initialize(client) @client = client end def get_all response = @client.get("/policy_groups") Common::WrappedResponse.new(response, Internal::PolicyGroup) end def each(&block) return to_enum(:each) unless block get_all.each(&block) end end end end end require 'ecoportal/api/internal/policy_group'