Class: YammerApi::User

Inherits:
Base
  • Object
show all
Defined in:
lib/yammer_api/user.rb

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], #initialize, lazy_attr_reader

Constructor Details

This class inherits a constructor from YammerApi::Base

Instance Method Details

#nicknameObject

Returns String.

Returns:

  • String



9
10
11
# File 'lib/yammer_api/user.rb', line 9

def nickname
  @nickname ||= @attrs["name"] if @attrs["name"]
end

#profile_imageObject

Returns String.

Returns:

  • String



19
20
21
# File 'lib/yammer_api/user.rb', line 19

def profile_image
  @profile_image ||= @attrs["mugshot_url"] if @attrs["mugshot_url"]
end

#profile_urlObject

Returns String.

Returns:

  • String



14
15
16
# File 'lib/yammer_api/user.rb', line 14

def profile_url
  @profile_url ||= @attrs["web_url"] if @attrs["web_url"]
end