Class: FastComments::SSO::SimpleSSOUserData
- Inherits:
-
Object
- Object
- FastComments::SSO::SimpleSSOUserData
- Defined in:
- lib/fastcomments/sso/simple_sso_user_data.rb
Instance Attribute Summary collapse
-
#avatar ⇒ Object
Returns the value of attribute avatar.
-
#email ⇒ Object
Returns the value of attribute email.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(user_id:, email:, avatar:) ⇒ SimpleSSOUserData
constructor
A new instance of SimpleSSOUserData.
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(user_id:, email:, avatar:) ⇒ SimpleSSOUserData
Returns a new instance of SimpleSSOUserData.
8 9 10 11 12 |
# File 'lib/fastcomments/sso/simple_sso_user_data.rb', line 8 def initialize(user_id:, email:, avatar:) @user_id = user_id @email = email @avatar = avatar end |
Instance Attribute Details
#avatar ⇒ Object
Returns the value of attribute avatar.
6 7 8 |
# File 'lib/fastcomments/sso/simple_sso_user_data.rb', line 6 def avatar @avatar end |
#email ⇒ Object
Returns the value of attribute email.
6 7 8 |
# File 'lib/fastcomments/sso/simple_sso_user_data.rb', line 6 def email @email end |
#user_id ⇒ Object
Returns the value of attribute user_id.
6 7 8 |
# File 'lib/fastcomments/sso/simple_sso_user_data.rb', line 6 def user_id @user_id end |
Instance Method Details
#to_json(*args) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/fastcomments/sso/simple_sso_user_data.rb', line 14 def to_json(*args) { user_id: @user_id, email: @email, avatar: @avatar }.to_json(*args) end |