Module: RubyInstagram::Client::Users

Included in:
RubyInstagram::Client
Defined in:
lib/ruby_instagram/client/users.rb

Overview

Defines methods related to users

Instance Method Summary collapse

Instance Method Details

#user(id = nil, options = {}) ⇒ Hashie::Mash

Returns extended information of a given user

Returns The requested user.

Examples:

Return extended information for @shayne

RubyInstagram.user(20)

Parameters:

  • user (Integer)

    An Instagram user ID

Returns:

  • (Hashie::Mash)

    The requested user.

See Also:



18
19
20
21
# File 'lib/ruby_instagram/client/users.rb', line 18

def user(*args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  get(args.first || 'me', options)
end