Sha256: 685b3b9cac0b558324c77c70a6709d9fd340a2ac9b34c079f3f4417fee3680e0

Contents?: true

Size: 328 Bytes

Versions: 6

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

require_relative "../response/organization_response"

module ONEAccess
  module API
    class Organizations < Base
      api_path "/organizations"

      def self.get(id:)
        resp = send_get("get/#{id}")
        Response::OrganizationResponse.from_json(resp.body)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
oneaccess-0.1.9 lib/oneaccess/api/organizations.rb
oneaccess-0.1.8 lib/oneaccess/api/organizations.rb
oneaccess-0.1.7 lib/oneaccess/api/organizations.rb
oneaccess-0.1.6 lib/oneaccess/api/organizations.rb
oneaccess-0.1.5 lib/oneaccess/api/organizations.rb
oneaccess-0.1.4 lib/oneaccess/api/organizations.rb