Class: Uber::User

Inherits:
Base
  • Object
show all
Defined in:
lib/uber/models/user.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], #initialize

Constructor Details

This class inherits a constructor from Uber::Base

Instance Attribute Details

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/uber/models/user.rb', line 3

def email
  @email
end

#first_nameObject

Returns the value of attribute first_name.



3
4
5
# File 'lib/uber/models/user.rb', line 3

def first_name
  @first_name
end

#last_nameObject

Returns the value of attribute last_name.



3
4
5
# File 'lib/uber/models/user.rb', line 3

def last_name
  @last_name
end

#mobile_verifiedObject

Returns the value of attribute mobile_verified.



3
4
5
# File 'lib/uber/models/user.rb', line 3

def mobile_verified
  @mobile_verified
end

#pictureObject

Returns the value of attribute picture.



3
4
5
# File 'lib/uber/models/user.rb', line 3

def picture
  @picture
end

#promo_codeObject

Returns the value of attribute promo_code.



3
4
5
# File 'lib/uber/models/user.rb', line 3

def promo_code
  @promo_code
end

#uuidObject

Returns the value of attribute uuid.



3
4
5
# File 'lib/uber/models/user.rb', line 3

def uuid
  @uuid
end

Instance Method Details

#mobile_verified?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/uber/models/user.rb', line 5

def mobile_verified?
  !!self.mobile_verified
end