Class: Dota::API::Match::AbilityUpgrade
- Inherits:
-
Object
- Object
- Dota::API::Match::AbilityUpgrade
- Defined in:
- lib/dota/api/match/ability_upgrade.rb
Instance Attribute Summary collapse
-
#ability ⇒ Object
readonly
Returns the value of attribute ability.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(raw) ⇒ AbilityUpgrade
constructor
A new instance of AbilityUpgrade.
Constructor Details
#initialize(raw) ⇒ AbilityUpgrade
Returns a new instance of AbilityUpgrade.
7 8 9 10 11 |
# File 'lib/dota/api/match/ability_upgrade.rb', line 7 def initialize(raw) @ability = Ability.new(raw["ability"]) @level = raw["level"] @time = raw["time"] end |
Instance Attribute Details
#ability ⇒ Object (readonly)
Returns the value of attribute ability.
5 6 7 |
# File 'lib/dota/api/match/ability_upgrade.rb', line 5 def ability @ability end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
5 6 7 |
# File 'lib/dota/api/match/ability_upgrade.rb', line 5 def level @level end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
5 6 7 |
# File 'lib/dota/api/match/ability_upgrade.rb', line 5 def time @time end |