Sha256: 5b3d9d40d0d5e3ccd47075961dbb690d1ed8b12e2ea501f2d3c63e101a031001

Contents?: true

Size: 369 Bytes

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
oneaccess-1.2.0 lib/oneaccess/api/v1_1/organizations.rb
oneaccess-1.1.0 lib/oneaccess/api/v1_1/organizations.rb
oneaccess-1.0.1 lib/oneaccess/api/v1_1/organizations.rb
oneaccess-1.0.0 lib/oneaccess/api/v1_1/organizations.rb
oneaccess-0.5.0 lib/oneaccess/api/v1_1/organizations.rb
oneaccess-0.4.5 lib/oneaccess/api/v1_1/organizations.rb