Class: GooglePlus::User
- Includes:
- Authenticatable, Creatable
- Defined in:
- lib/google_plus/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 GooglePlus::Base
Instance Method Details
#==(other) ⇒ Boolean
54 55 56 |
# File 'lib/google_plus/user.rb', line 54 def ==(other) super || (other.class == self.class && other.id == self.id) end |
#status ⇒ GooglePlus::Status
59 60 61 |
# File 'lib/google_plus/user.rb', line 59 def status @status ||= GooglePlus::Status.new(@attrs['status'].merge('user' => self.to_hash.delete_if{|key, value| key == 'status'})) unless @attrs['status'].nil? end |