Class: Yammer::User

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/yammer/user.rb

Instance Method Summary collapse

Constructor Details

#initialize(mash, client) ⇒ User

Returns a new instance of User.



5
6
7
8
# File 'lib/yammer/user.rb', line 5

def initialize(mash, client)
  @user   = mash
  @client = client 
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(call, *args) ⇒ Object



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

def method_missing(call, *args)
  @user.send(call, *args)
end

Instance Method Details

#me?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/yammer/user.rb', line 10

def me?
  @user.id == @client.me.id
end