Class: MMRHistory

Inherits:
Object
  • Object
show all
Defined in:
lib/api/utils/mmr_history.rb

Overview

This class is used to get the data from the mmr history

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ MMRHistory

Returns a new instance of MMRHistory.



9
10
11
# File 'lib/api/utils/mmr_history.rb', line 9

def initialize(hash)
  @data = fetch_mmr_v1(hash['data'])
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



7
8
9
# File 'lib/api/utils/mmr_history.rb', line 7

def data
  @data
end