Class: LeagueOfLegends::Request::Champion
- Defined in:
- lib/league_of_legends/request/champion.rb
Instance Attribute Summary collapse
-
#free_to_play ⇒ Object
readonly
Returns the value of attribute free_to_play.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api, free_to_play, options = {}) ⇒ Champion
constructor
A new instance of Champion.
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, = {} super(api, ) @free_to_play = parse_f2p free_to_play end |
Instance Attribute Details
#free_to_play ⇒ Object (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_class ⇒ Object
14 15 16 |
# File 'lib/league_of_legends/request/champion.rb', line 14 def self.dto_class ::LeagueOfLegends::DTO::ChampionList end |