class Warcraft::Character::CategoryProgress
Public Class Methods
new(client, data)
click to toggle source
# File lib/warcraft/character/achievements.rb, line 96 def initialize(client, data) @client = client @data = data end
Public Instance Methods
category()
click to toggle source
@return [Hash]
# File lib/warcraft/character/achievements.rb, line 117 def category @data[:category] end
category_id()
click to toggle source
@return [Integer]
# File lib/warcraft/character/achievements.rb, line 126 def category_id @data.dig(:category, :id) end
category_url()
click to toggle source
@return [String]
# File lib/warcraft/character/achievements.rb, line 131 def category_url @data.dig(:category, :key, :href) end
full_category()
click to toggle source
# File lib/warcraft/character/achievements.rb, line 121 def full_category @client.get(category_url) end
name()
click to toggle source
@return [Hash]
# File lib/warcraft/character/achievements.rb, line 112 def name @data.dig(:category, :name) end
points()
click to toggle source
@return [Integer]
# File lib/warcraft/character/achievements.rb, line 107 def points @data[:points] end
quantity()
click to toggle source
@return [Integer]
# File lib/warcraft/character/achievements.rb, line 102 def quantity @data[:quantity] end