Class: Twitter::User
- Includes:
- Authenticatable, Creatable
- Defined in:
- lib/twitter/user.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from Creatable
Methods included from Authenticatable
Methods inherited from Base
#[], #initialize, lazy_attr_reader
Constructor Details
This class inherits a constructor from Twitter::Base
Instance Method Details
#==(other) ⇒ Boolean
55 56 57 |
# File 'lib/twitter/user.rb', line 55 def ==(other) super || (other.class == self.class && other.id == self.id) end |
#status ⇒ Twitter::Status
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 |