Sha256: 292581c750eecb971179c8072c0b2390e95b026570f61f13425a3fceed81ea5c

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

module Ecoportal
  module API
    class Internal
      class PolicyGroups
        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'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ecoportal-api-0.1.1 lib/ecoportal/api/internal/policy_groups.rb