Sha256: 34d93634c154a0f61cb583a5a084e803ebc9cf5c9f3f265b514998a2db383de0
Contents?: true
Size: 460 Bytes
Versions: 3
Compression:
Stored size: 460 Bytes
Contents
class Bnet::Diablo3::Skill < Bnet::BnetResource attr_accessor :name, :rune # Ags : # { # "skill" => { name: "", ... }, # "rune" => { name: "", ... } # } # # Returns: # # #<Bnet::Diablo3::Skill:0x007fd111396360 @name: "", @rune: ""> def self.from_api(response) skill = new skill.name = response['skill']['name'] skill.rune = response['rune']['name'] if response["rune"] return skill end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bnet-0.0.10 | lib/bnet/diablo3/skill.rb |
bnet-0.0.5 | lib/bnet/diablo3/skill.rb |
bnet-0.0.4 | lib/bnet/diablo3/skill.rb |