Class: GvoiceRuby::User
- Inherits:
-
Object
- Object
- GvoiceRuby::User
- Defined in:
- lib/gvoice-ruby/user.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
User is not a struct because we require email and password attributes.
-
#password ⇒ Object
User is not a struct because we require email and password attributes.
Instance Method Summary collapse
-
#initialize(email, password) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(email, password) ⇒ User
Returns a new instance of User.
7 8 9 10 |
# File 'lib/gvoice-ruby/user.rb', line 7 def initialize(email, password) @email = email @password = password end |
Instance Attribute Details
#email ⇒ Object
User is not a struct because we require email and password attributes
5 6 7 |
# File 'lib/gvoice-ruby/user.rb', line 5 def email @email end |
#password ⇒ Object
User is not a struct because we require email and password attributes
5 6 7 |
# File 'lib/gvoice-ruby/user.rb', line 5 def password @password end |