Class: MMRHistory
- Inherits:
-
Object
- Object
- MMRHistory
- 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
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(hash) ⇒ MMRHistory
constructor
A new instance of MMRHistory.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/api/utils/mmr_history.rb', line 7 def data @data end |