Class: Sightstone::MasteryBook
- Inherits:
-
Object
- Object
- Sightstone::MasteryBook
- Defined in:
- lib/sightstone/masterybook.rb
Instance Attribute Summary collapse
-
#pages ⇒ Array<MasteryPage>
of the masterybook.
-
#summonerId ⇒ Object
Returns the value of attribute summonerId.
Instance Method Summary collapse
-
#initialize(data) ⇒ MasteryBook
constructor
A new instance of MasteryBook.
Constructor Details
#initialize(data) ⇒ MasteryBook
Returns a new instance of MasteryBook.
8 9 10 11 12 13 14 15 16 |
# File 'lib/sightstone/masterybook.rb', line 8 def initialize(data) @summonerId = data['summonerId'] @pages = [] if(data.has_key? 'pages') data['pages'].each do |page| @pages << MasteryPage.new(page) end end end |
Instance Attribute Details
#pages ⇒ Array<MasteryPage>
of the masterybook
5 6 7 |
# File 'lib/sightstone/masterybook.rb', line 5 def pages @pages end |
#summonerId ⇒ Object
Returns the value of attribute summonerId.
6 7 8 |
# File 'lib/sightstone/masterybook.rb', line 6 def summonerId @summonerId end |