Sha256: 888fd0acf5ae797507a9ff3127567a25aa1e9d626a688d89e3f76b73de018805

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

require_relative '../../response/organization_response'

module ONEAccess
  module API
    module V1_1
      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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oneaccess-1.3.1 lib/oneaccess/api/v1_1/organizations.rb
oneaccess-1.3.0 lib/oneaccess/api/v1_1/organizations.rb