Class: OpenDotaApi::ProPlayer
- Inherits:
-
Entity
- Object
- Entity
- OpenDotaApi::ProPlayer
show all
- Defined in:
- lib/open_dota_api/pro_player.rb
Constant Summary
collapse
- ENDPOINT =
'proPlayers'.freeze
Instance Method Summary
collapse
Methods inherited from Entity
define_adder, #initialize
included
Instance Method Details
#account_id ⇒ Object
6
7
8
|
# File 'lib/open_dota_api/pro_player.rb', line 6
def account_id
data['account_id']
end
|
#avatar ⇒ Object
14
15
16
|
# File 'lib/open_dota_api/pro_player.rb', line 14
def avatar
data['avatar']
end
|
#avatar_full ⇒ Object
22
23
24
|
# File 'lib/open_dota_api/pro_player.rb', line 22
def avatar_full
data['avatarfull']
end
|
#avatar_medium ⇒ Object
18
19
20
|
# File 'lib/open_dota_api/pro_player.rb', line 18
def avatar_medium
data['avatarmedium']
end
|
#cheese ⇒ Object
42
43
44
|
# File 'lib/open_dota_api/pro_player.rb', line 42
def cheese
data['cheese']
end
|
#country_code ⇒ Object
62
63
64
|
# File 'lib/open_dota_api/pro_player.rb', line 62
def country_code
data['country_code']
end
|
#fantasy_role ⇒ Object
66
67
68
|
# File 'lib/open_dota_api/pro_player.rb', line 66
def fantasy_role
data['fantasy_role']
end
|
#fh_unavailable ⇒ Object
46
47
48
|
# File 'lib/open_dota_api/pro_player.rb', line 46
def fh_unavailable
data['fh_unavailable']
end
|
#full_history_time ⇒ Object
38
39
40
|
# File 'lib/open_dota_api/pro_player.rb', line 38
def full_history_time
Time.parse(data['full_history_time'])
end
|
#last_login ⇒ Object
34
35
36
|
# File 'lib/open_dota_api/pro_player.rb', line 34
def last_login
Time.parse(data['last_login'])
end
|
#last_match_time ⇒ Object
54
55
56
|
# File 'lib/open_dota_api/pro_player.rb', line 54
def last_match_time
Time.parse(data['last_match_time'])
end
|
#loc_country_code ⇒ Object
50
51
52
|
# File 'lib/open_dota_api/pro_player.rb', line 50
def loc_country_code
data['loccountrycode']
end
|
#locked? ⇒ Boolean
82
83
84
|
# File 'lib/open_dota_api/pro_player.rb', line 82
def locked?
data['is_locked']
end
|
#locked_until ⇒ Object
90
91
92
|
# File 'lib/open_dota_api/pro_player.rb', line 90
def locked_until
data['locked_until']
end
|
#name ⇒ Object
58
59
60
|
# File 'lib/open_dota_api/pro_player.rb', line 58
def name
data['name']
end
|
#persona_name ⇒ Object
30
31
32
|
# File 'lib/open_dota_api/pro_player.rb', line 30
def persona_name
data['personaname']
end
|
#pro? ⇒ Boolean
86
87
88
|
# File 'lib/open_dota_api/pro_player.rb', line 86
def pro?
data['is_pro']
end
|
#profile_url ⇒ Object
26
27
28
|
# File 'lib/open_dota_api/pro_player.rb', line 26
def profile_url
data['profileurl']
end
|
#steam_id ⇒ Object
10
11
12
|
# File 'lib/open_dota_api/pro_player.rb', line 10
def steam_id
data['steamid']
end
|
#team_id ⇒ Object
70
71
72
|
# File 'lib/open_dota_api/pro_player.rb', line 70
def team_id
data['team_id']
end
|
#team_name ⇒ Object
74
75
76
|
# File 'lib/open_dota_api/pro_player.rb', line 74
def team_name
data['team_name']
end
|
#team_tag ⇒ Object
78
79
80
|
# File 'lib/open_dota_api/pro_player.rb', line 78
def team_tag
data['team_tag']
end
|