Class: RiotKit::Services::Riot::MatchDetail
- Includes:
- Helpers::Riot::MatchHelpers
- Defined in:
- lib/riot_kit/services/riot/match_detail.rb
Constant Summary
Constants included from Helpers::Riot::MatchHelpers
Helpers::Riot::MatchHelpers::FILTERS, Helpers::Riot::MatchHelpers::QUEUE_ID, Helpers::Riot::MatchHelpers::QUEUE_LABEL
Instance Attribute Summary collapse
-
#raw_data ⇒ Object
readonly
Returns the value of attribute raw_data.
Instance Method Summary collapse
-
#initialize(match_id:, puuid:, raw_data: nil, client: nil, config: RiotKit.config) ⇒ MatchDetail
constructor
A new instance of MatchDetail.
Methods included from Helpers::Riot::MatchHelpers
#cs_per_minute, #cs_total_for, #item_ids_for, #queue_label_for
Methods inherited from Base
Constructor Details
#initialize(match_id:, puuid:, raw_data: nil, client: nil, config: RiotKit.config) ⇒ MatchDetail
Returns a new instance of MatchDetail.
20 21 22 23 24 25 26 27 |
# File 'lib/riot_kit/services/riot/match_detail.rb', line 20 def initialize(match_id:, puuid:, raw_data: nil, client: nil, config: RiotKit.config) @match_id = match_id @puuid = puuid @raw_data = raw_data @client = client || Clients::Riot.new(config: config) @config = config @result = nil end |
Instance Attribute Details
#raw_data ⇒ Object (readonly)
Returns the value of attribute raw_data.
18 19 20 |
# File 'lib/riot_kit/services/riot/match_detail.rb', line 18 def raw_data @raw_data end |