Class: MasteryBook
- Inherits:
-
Object
- Object
- MasteryBook
- Defined in:
- lib/sightstone/masterybook.rb
Instance Attribute Summary (collapse)
-
- (Object) pages
Returns the value of attribute pages.
-
- (Object) summonerId
Returns the value of attribute summonerId.
Instance Method Summary (collapse)
-
- (MasteryBook) initialize(data)
constructor
A new instance of MasteryBook.
Constructor Details
- (MasteryBook) initialize(data)
Returns a new instance of MasteryBook
4 5 6 7 8 9 10 |
# File 'lib/sightstone/masterybook.rb', line 4 def initialize(data) @summonerId = data['summonerId'] @pages = [] data['pages'].each do |page| @pages << MasteryPage.new(page) end end |
Instance Attribute Details
- (Object) pages
Returns the value of attribute pages
2 3 4 |
# File 'lib/sightstone/masterybook.rb', line 2 def pages @pages end |
- (Object) summonerId
Returns the value of attribute summonerId
2 3 4 |
# File 'lib/sightstone/masterybook.rb', line 2 def summonerId @summonerId end |