Class: GoogleClient::Profile

Inherits:
Object
  • Object
show all
Defined in:
lib/google_client/profile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Profile

Returns a new instance of Profile.



6
7
8
9
# File 'lib/google_client/profile.rb', line 6

def initialize(params ={})
  @email = params[:email]
  @external_id = params[:external_id]
end

Instance Attribute Details

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/google_client/profile.rb', line 3

def email
  @email
end

#external_idObject

Returns the value of attribute external_id.



4
5
6
# File 'lib/google_client/profile.rb', line 4

def external_id
  @external_id
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/google_client/profile.rb', line 11

def to_s
  "#{self.class.name} => { email: #{@email}, external_id: #{@external_id} }"
end