Class: GoogleClient::Profile
- Inherits:
-
Object
- Object
- GoogleClient::Profile
- Defined in:
- lib/google_client/profile.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#external_id ⇒ Object
Returns the value of attribute external_id.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Profile
constructor
A new instance of Profile.
- #to_s ⇒ Object
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
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/google_client/profile.rb', line 3 def email @email end |
#external_id ⇒ Object
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_s ⇒ Object
11 12 13 |
# File 'lib/google_client/profile.rb', line 11 def to_s "#{self.class.name} => { email: #{@email}, external_id: #{@external_id} }" end |