Class: Twitter::User

Inherits:
Base
  • Object
show all
Includes:
Authenticatable, Creatable
Defined in:
lib/twitter/user.rb

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods included from Creatable

#created_at

Methods included from Authenticatable

#credentials, #credentials?

Methods inherited from Base

#[], #initialize, lazy_attr_reader

Constructor Details

This class inherits a constructor from Twitter::Base

Instance Method Details

#==(other) ⇒ Boolean

Parameters:

  • other (Twiter::User)

Returns:

  • (Boolean)


55
56
57
# File 'lib/twitter/user.rb', line 55

def ==(other)
  super || (other.class == self.class && other.id == self.id)
end

#statusTwitter::Status

Returns:



60
61
62
# File 'lib/twitter/user.rb', line 60

def status
  @status ||= Twitter::Status.new(@attrs.dup['status'].merge('user' => @attrs.except('status'))) unless @attrs['status'].nil?
end