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(params: {}, &block) get_all.each(&block) self end end end end end require 'ecoportal/api/internal/policy_group'