Sha256: 25eb94aaf35d9d224b2a726ae9ff5d6720a3a1a4e0f451c2b13f93c0e668a980

Contents?: true

Size: 231 Bytes

Versions: 6

Compression:

Stored size: 231 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
panoptes-client-1.0.0.pre1 lib/panoptes/client/users.rb
panoptes-client-1.0.0.pre lib/panoptes/client/users.rb
panoptes-client-0.4.0 lib/panoptes/client/users.rb
panoptes-client-0.3.8 lib/panoptes/client/users.rb
panoptes-client-0.3.7 lib/panoptes/client/users.rb
panoptes-client-0.3.6 lib/panoptes/client/users.rb