Class: OpenDotaApi::League

Inherits:
Entity
  • Object
show all
Defined in:
lib/open_dota_api/league.rb

Constant Summary collapse

ENDPOINT =
'leagues'.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



15
16
17
# File 'lib/open_dota_api/league.rb', line 15

def banner
  data['banner']
end

#league_idObject



7
8
9
# File 'lib/open_dota_api/league.rb', line 7

def league_id
  data['leagueid']
end

#nameObject



23
24
25
# File 'lib/open_dota_api/league.rb', line 23

def name
  data['name']
end

#ticketObject



11
12
13
# File 'lib/open_dota_api/league.rb', line 11

def ticket
  data['ticket']
end

#tierObject



19
20
21
# File 'lib/open_dota_api/league.rb', line 19

def tier
  data['tier']
end