Class: Firering::User

Inherits:
Struct
  • Object
show all
Extended by:
Instantiator
Defined in:
lib/firering/data/user.rb,
lib/firering/data/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Instantiator

instantiate

Instance Attribute Details

#adminObject Also known as: admin?

Returns the value of attribute admin

Returns:

  • (Object)

    the current value of admin



2
3
4
# File 'lib/firering/data/user.rb', line 2

def admin
  @admin
end

#api_auth_tokenObject Also known as: token

Returns the value of attribute api_auth_token

Returns:

  • (Object)

    the current value of api_auth_token



2
3
4
# File 'lib/firering/data/user.rb', line 2

def api_auth_token
  @api_auth_token
end

#avatar_urlObject

Returns the value of attribute avatar_url

Returns:

  • (Object)

    the current value of avatar_url



2
3
4
# File 'lib/firering/data/user.rb', line 2

def avatar_url
  @avatar_url
end

#connectionObject

Returns the value of attribute connection

Returns:

  • (Object)

    the current value of connection



2
3
4
# File 'lib/firering/data/user.rb', line 2

def connection
  @connection
end

#created_atObject

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



2
3
4
# File 'lib/firering/data/user.rb', line 2

def created_at
  @created_at
end

#email_addressObject

Returns the value of attribute email_address

Returns:

  • (Object)

    the current value of email_address



2
3
4
# File 'lib/firering/data/user.rb', line 2

def email_address
  @email_address
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



2
3
4
# File 'lib/firering/data/user.rb', line 2

def id
  @id
end

#nameObject Also known as: to_s

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2
3
4
# File 'lib/firering/data/user.rb', line 2

def name
  @name
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



2
3
4
# File 'lib/firering/data/user.rb', line 2

def type
  @type
end

Instance Method Details

#guest?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/firering/data/user.rb', line 14

def guest?
  type == "Guest"
end

#member?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/firering/data/user.rb', line 10

def member?
  type == "Member"
end