Class: GvoiceRuby::User

Inherits:
Object
  • Object
show all
Defined in:
lib/gvoice-ruby/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#emailObject

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

#passwordObject

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