Class: Hextech::League::ThirdPartyCode
- Defined in:
- lib/hextech/league/third_party_code.rb
Constant Summary collapse
- REGIONS =
%w[euw1 eun1 na1 oc1 kr br1 tr1 la2 la1 ru jp1].freeze
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(summoner_id:, region: 'euw1') ⇒ ThirdPartyCode
constructor
A new instance of ThirdPartyCode.
Methods included from Mixins::Callable
Methods included from Mixins::ArgumentChecks
Constructor Details
#initialize(summoner_id:, region: 'euw1') ⇒ ThirdPartyCode
Returns a new instance of ThirdPartyCode.
9 10 11 12 13 14 |
# File 'lib/hextech/league/third_party_code.rb', line 9 def initialize(summoner_id:, region: 'euw1') @summoner_id = summoner_id @region = region super() end |
Instance Method Details
#call ⇒ Object
16 17 18 19 20 |
# File 'lib/hextech/league/third_party_code.rb', line 16 def call validate_collection_for(collection: REGIONS, option: region) super end |