Sha256: e832afe5d10953dcf971e4beb66bbed857837a16e0024c12d485c1bb08fe3359
Contents?: true
Size: 391 Bytes
Versions: 3
Compression:
Stored size: 391 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) new(name: response['skill']['name'], rune: response['rune']['name']) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bnet-0.0.3 | lib/bnet/diablo3/skill.rb |
bnet-0.0.2 | lib/bnet/diablo3/skill.rb |
bnet-0.0.1 | lib/bnet/diablo3/skill.rb |