Class: LeagueOfLegends::Request::Champion

Inherits:
Base
  • Object
show all
Defined in:
lib/league_of_legends/request/champion.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#options

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#api_key, default_options, #region, #response, version

Constructor Details

#initialize(api, free_to_play, options = {}) ⇒ Champion

Returns a new instance of Champion.



9
10
11
12
# File 'lib/league_of_legends/request/champion.rb', line 9

def initialize api, free_to_play, options = {}
  super(api, options)
    @free_to_play = parse_f2p free_to_play
end

Instance Attribute Details

#free_to_playObject (readonly)

Returns the value of attribute free_to_play.



7
8
9
# File 'lib/league_of_legends/request/champion.rb', line 7

def free_to_play
  @free_to_play
end

Class Method Details

.dto_classObject



14
15
16
# File 'lib/league_of_legends/request/champion.rb', line 14

def self.dto_class
  ::LeagueOfLegends::DTO::ChampionList
end