Class: GooglePlus::User

Inherits:
Base
  • Object
show all
Includes:
Authenticatable, Creatable
Defined in:
lib/google_plus/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 GooglePlus::Base

Instance Method Details

#==(other) ⇒ Boolean

Parameters:

Returns:

  • (Boolean)


54
55
56
# File 'lib/google_plus/user.rb', line 54

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

#statusGooglePlus::Status

Returns:



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