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