Class: Nexus::PagesMasteries
- Inherits:
-
Object
- Object
- Nexus::PagesMasteries
- Defined in:
- lib/nexus/model/masteries.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#pages ⇒ Object
readonly
Returns the value of attribute pages.
Instance Method Summary collapse
-
#initialize(params) ⇒ PagesMasteries
constructor
A new instance of PagesMasteries.
Constructor Details
#initialize(params) ⇒ PagesMasteries
Returns a new instance of PagesMasteries.
6 7 8 9 10 11 12 13 |
# File 'lib/nexus/model/masteries.rb', line 6 def initialize(params) @id = params["summonerId"] @name = Nexus.get_summoner_name(params["summonerId"].to_s) @pages = Array.new() params["pages"].each do |p| @pages.push(Nexus::MPage.new(p)) end end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/nexus/model/masteries.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/nexus/model/masteries.rb', line 4 def name @name end |
#pages ⇒ Object (readonly)
Returns the value of attribute pages.
4 5 6 |
# File 'lib/nexus/model/masteries.rb', line 4 def pages @pages end |