Class: Arena::User

Inherits:
Base
  • Object
show all
Includes:
Creatable
Defined in:
lib/arena/user.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods included from Creatable

#created_at, #updated_at

Methods inherited from Base

attr_reader, #initialize

Constructor Details

This class inherits a constructor from Arena::Base

Instance Attribute Details

#avatarObject (readonly)

Returns the value of attribute avatar.



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

def avatar
  @avatar
end

#channel_countObject (readonly)

Returns the value of attribute channel_count.



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

def channel_count
  @channel_count
end

#emailObject (readonly)

Returns the value of attribute email.



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

def email
  @email
end

#first_nameObject (readonly)

Returns the value of attribute first_name.



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

def first_name
  @first_name
end

#follower_countObject (readonly)

Returns the value of attribute follower_count.



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

def follower_count
  @follower_count
end

#following_countObject (readonly)

Returns the value of attribute following_count.



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

def following_count
  @following_count
end

#full_nameObject (readonly)

Returns the value of attribute full_name.



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

def full_name
  @full_name
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#initialsObject (readonly)

Returns the value of attribute initials.



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

def initials
  @initials
end

#last_nameObject (readonly)

Returns the value of attribute last_name.



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

def last_name
  @last_name
end

#profile_idObject (readonly)

Returns the value of attribute profile_id.



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

def profile_id
  @profile_id
end

#slugObject (readonly)

Returns the value of attribute slug.



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

def slug
  @slug
end

#usernameObject (readonly)

Returns the value of attribute username.



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

def username
  @username
end

Instance Method Details

#_classObject



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

def _class
  @attrs["class"]
end

#avatar_imageObject



18
19
20
# File 'lib/arena/user.rb', line 18

def avatar_image
  Arena::Entity::Avatar.new(@attrs["avatar_image"]) if !@attrs["avatar_image"].nil?
end