documented

This commit is contained in:
danijoo
2013-12-30 15:00:49 +01:00
parent 08c8bf21c3
commit fd3b1b31cc
3 changed files with 54 additions and 7 deletions

View File

@@ -1,3 +1,6 @@
# Class to represent the masterybook of a summoner
# @attr [Numeric] summonerId id of the summoner
# @attr [Array<MasteryPage>] pages of the masterybook
class MasteryBook
attr_accessor :pages, :summonerId
@@ -10,6 +13,11 @@ class MasteryBook
end
end
# Class to represent a page of a masterybook
# @attr [Numeric] id ID of the page
# @attr [String] name page name
# @attr [Boolean] current indicates if the page is selected
# @attr [Array<Talent>] array of selected talents
class MasteryPage
attr_accessor :id, :talents, :name, :current
@@ -25,6 +33,10 @@ class MasteryPage
end
# Class to represent a talent of a mastery page
# @attr [Numeric] id id of the mastery
# @attr [String] name of the mastery
# @attr [Numeric] rank rank of the mastery
class Talent
attr_accessor :id,:rank, :name