Sha256: bcd034d42d15fbf319bc39971298ac07a2d49efcf872f9a4ee0e02b756cafa4c

Contents?: true

Size: 434 Bytes

Versions: 1

Compression:

Stored size: 434 Bytes

Contents

require 'erb'

module Gerry
  module Api
    module Access
      # Get access rights for the specified project
      #
      # @param [VarArgs] projects the project names
      # @return [Hash] the list of access rights
      def access(*projects)
        projects = projects.flatten.map { |name| ERB::Util.url_encode(name) }
        url = "/access/?project=#{projects.join('&project=')}"
        get(url)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gerry-0.1.6 lib/gerry/api/access.rb