documented
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user