Class: OpenDotaApi::ProPlayer

Inherits:
Entity
  • Object
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

Methods included from Entities::Instantiatable

included

Constructor Details

This class inherits a constructor from OpenDotaApi::Entity

Instance Method Details

#account_idObject



6
7
8
# File 'lib/open_dota_api/pro_player.rb', line 6

def 
  data['account_id']
end

#avatarObject



14
15
16
# File 'lib/open_dota_api/pro_player.rb', line 14

def avatar
  data['avatar']
end

#avatar_fullObject



22
23
24
# File 'lib/open_dota_api/pro_player.rb', line 22

def avatar_full
  data['avatarfull']
end

#avatar_mediumObject



18
19
20
# File 'lib/open_dota_api/pro_player.rb', line 18

def avatar_medium
  data['avatarmedium']
end

#cheeseObject



42
43
44
# File 'lib/open_dota_api/pro_player.rb', line 42

def cheese
  data['cheese']
end

#country_codeObject



62
63
64
# File 'lib/open_dota_api/pro_player.rb', line 62

def country_code
  data['country_code']
end

#fantasy_roleObject



66
67
68
# File 'lib/open_dota_api/pro_player.rb', line 66

def fantasy_role
  data['fantasy_role']
end

#fh_unavailableObject



46
47
48
# File 'lib/open_dota_api/pro_player.rb', line 46

def fh_unavailable
  data['fh_unavailable']
end

#full_history_timeObject



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_loginObject



34
35
36
# File 'lib/open_dota_api/pro_player.rb', line 34

def 
  Time.parse(data['last_login'])
end

#last_match_timeObject



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_codeObject



50
51
52
# File 'lib/open_dota_api/pro_player.rb', line 50

def loc_country_code
  data['loccountrycode']
end

#locked?Boolean

Returns:

  • (Boolean)


82
83
84
# File 'lib/open_dota_api/pro_player.rb', line 82

def locked?
  data['is_locked']
end

#locked_untilObject



90
91
92
# File 'lib/open_dota_api/pro_player.rb', line 90

def locked_until
  data['locked_until']
end

#nameObject



58
59
60
# File 'lib/open_dota_api/pro_player.rb', line 58

def name
  data['name']
end

#persona_nameObject



30
31
32
# File 'lib/open_dota_api/pro_player.rb', line 30

def persona_name
  data['personaname']
end

#pro?Boolean

Returns:

  • (Boolean)


86
87
88
# File 'lib/open_dota_api/pro_player.rb', line 86

def pro?
  data['is_pro']
end

#profile_urlObject



26
27
28
# File 'lib/open_dota_api/pro_player.rb', line 26

def profile_url
  data['profileurl']
end

#steam_idObject



10
11
12
# File 'lib/open_dota_api/pro_player.rb', line 10

def steam_id
  data['steamid']
end

#team_idObject



70
71
72
# File 'lib/open_dota_api/pro_player.rb', line 70

def team_id
  data['team_id']
end

#team_nameObject



74
75
76
# File 'lib/open_dota_api/pro_player.rb', line 74

def team_name
  data['team_name']
end

#team_tagObject



78
79
80
# File 'lib/open_dota_api/pro_player.rb', line 78

def team_tag
  data['team_tag']
end