Sha256: 918d62936a019dddc0629198869d0d2dbe2cd757ca41768cf501723a6e9840b9

Contents?: true

Size: 454 Bytes

Versions: 3

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

module Kentaa
  module Api
    module Clients
      class Users < Base
        include Kentaa::Api::Clients::All

        def list(options = {})
          users = Kentaa::Api::Resources::Users.new(config, options)
          users.load
        end

        def get(id, options = {})
          user = Kentaa::Api::Resources::User.new(config, options.merge(id: id))
          user.load
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kentaa-api-0.3.2 lib/kentaa/api/clients/users.rb
kentaa-api-0.3.1 lib/kentaa/api/clients/users.rb
kentaa-api-0.3.0 lib/kentaa/api/clients/users.rb