Sha256: ab839e1832b227d39dee4c184a01b5b4a2bc99dcc9c23c9e8182d582f7d2fa9e

Contents?: true

Size: 289 Bytes

Versions: 1

Compression:

Stored size: 289 Bytes

Contents

module DiscourseApi
  module API
    module Groups
      def create_group(name:, visible: false)
        post("/admin/groups", group: {name: name, visible: visible.to_s})
      end

      def groups
        response = get("/admin/groups")
        response.body
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
discourse_api-0.2.5 lib/discourse_api/api/groups.rb