Class: Firering::User
- Inherits:
-
Struct
- Object
- Struct
- Firering::User
- Extended by:
- Instantiator
- Defined in:
- lib/firering/data/user.rb,
lib/firering/data/user.rb
Instance Attribute Summary collapse
-
#admin ⇒ Object
(also: #admin?)
Returns the value of attribute admin.
-
#api_auth_token ⇒ Object
(also: #token)
Returns the value of attribute api_auth_token.
-
#avatar_url ⇒ Object
Returns the value of attribute avatar_url.
-
#connection ⇒ Object
Returns the value of attribute connection.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#email_address ⇒ Object
Returns the value of attribute email_address.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
(also: #to_s)
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Methods included from Instantiator
Instance Attribute Details
#admin ⇒ Object Also known as: admin?
Returns the value of attribute admin
2 3 4 |
# File 'lib/firering/data/user.rb', line 2 def admin @admin end |
#api_auth_token ⇒ Object Also known as: token
Returns the value of attribute api_auth_token
2 3 4 |
# File 'lib/firering/data/user.rb', line 2 def api_auth_token @api_auth_token end |
#avatar_url ⇒ Object
Returns the value of attribute avatar_url
2 3 4 |
# File 'lib/firering/data/user.rb', line 2 def avatar_url @avatar_url end |
#connection ⇒ Object
Returns the value of attribute connection
2 3 4 |
# File 'lib/firering/data/user.rb', line 2 def connection @connection end |
#created_at ⇒ Object
Returns the value of attribute created_at
2 3 4 |
# File 'lib/firering/data/user.rb', line 2 def created_at @created_at end |
#email_address ⇒ Object
Returns the value of attribute email_address
2 3 4 |
# File 'lib/firering/data/user.rb', line 2 def email_address @email_address end |
#id ⇒ Object
Returns the value of attribute id
2 3 4 |
# File 'lib/firering/data/user.rb', line 2 def id @id end |
#name ⇒ Object Also known as: to_s
Returns the value of attribute name
2 3 4 |
# File 'lib/firering/data/user.rb', line 2 def name @name end |
#type ⇒ Object
Returns the value of attribute type
2 3 4 |
# File 'lib/firering/data/user.rb', line 2 def type @type end |
Instance Method Details
#guest? ⇒ Boolean
14 15 16 |
# File 'lib/firering/data/user.rb', line 14 def guest? type == "Guest" end |
#member? ⇒ Boolean
10 11 12 |
# File 'lib/firering/data/user.rb', line 10 def member? type == "Member" end |