class Demacia::Talent
Represents a LoL talent in a page
Attributes
id[RW]
name[RW]
rank[RW]
Public Class Methods
new(id, name, rank)
click to toggle source
Constructor, initializes the talent Params:
id
-
The talent's internal id provided by riot
name
-
The talent's name
rank
-
The talent's rank, aka its level in the talents page (1-2-3-4)
# File lib/demacia/Talent.rb, line 11 def initialize(id, name, rank) @id = id @name = name @rank = rank end
Public Instance Methods
to_s()
click to toggle source
# File lib/demacia/Talent.rb, line 17 def to_s return_string = "\nTalent id: \t"+@id.to_s + "\nTalent name:\t"+@name + "\nTalent rank:\t"+@rank.to_s end