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