Class: OAuth2::User
- Inherits:
-
Object
- Object
- OAuth2::User
- Defined in:
- lib/oauth20/user.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data) ⇒ User
constructor
A new instance of User.
- #save ⇒ Object
Constructor Details
#initialize(data) ⇒ User
Returns a new instance of User.
5 6 7 8 |
# File 'lib/oauth20/user.rb', line 5 def initialize(data) @email = data[:email] @password = data[:password] end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
3 4 5 |
# File 'lib/oauth20/user.rb', line 3 def email @email end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
3 4 5 |
# File 'lib/oauth20/user.rb', line 3 def password @password end |