Sha256: f9d3cb6c5372c9bd538c5f9c5fc93bebf19532a6343cd64840618d99661f2cb5

Contents?: true

Size: 263 Bytes

Versions: 5

Compression:

Stored size: 263 Bytes

Contents

# frozen_string_literal: true

module Panoptes
  class Client
    module Users
      def user(user_id)
        response = panoptes.get("users/#{user_id}")
        response.fetch('users').find { |i| i.fetch('id').to_s == user_id.to_s }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
panoptes-client-1.2.1 lib/panoptes/client/users.rb
panoptes-client-1.2.0 lib/panoptes/client/users.rb
panoptes-client-1.1.1 lib/panoptes/client/users.rb
panoptes-client-1.1.0 lib/panoptes/client/users.rb
panoptes-client-1.0.0 lib/panoptes/client/users.rb