Sha256: 6dcfd711a8a4b34dbb156d33becb21951cdfad08a0e2c8a737e435796c57b185

Contents?: true

Size: 417 Bytes

Versions: 7

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

require_relative "../../response/organization_response"

module ONEAccess
  module API
    module V1_1 # rubocop:disable Style/ClassAndModuleCamelCase
      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

7 entries across 7 versions & 1 rubygems

Version Path
oneaccess-0.4.4 lib/oneaccess/api/v1_1/organizations.rb
oneaccess-0.4.3 lib/oneaccess/api/v1_1/organizations.rb
oneaccess-0.4.2 lib/oneaccess/api/v1_1/organizations.rb
oneaccess-0.4.1 lib/oneaccess/api/v1_1/organizations.rb
oneaccess-0.4.0 lib/oneaccess/api/v1_1/organizations.rb
oneaccess-0.3.0 lib/oneaccess/api/v1_1/organizations.rb
oneaccess-0.2.0 lib/oneaccess/api/v1_1/organizations.rb