Class: Bnet::WOW::Data::CharacterRace

Inherits:
Base show all
Defined in:
lib/bnet/wow/data/character_race.rb

Constant Summary collapse

SCOPES =
{
  url: 'character/races',
  collection_root: 'races'
}
PARAMS_MAPPING =
{
  "id" => :race_id, "mask" => :mask,
  "side" => :side, "name" => :name
}

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

find_all

Methods inherited from BnetResource

from_api, #initialize

Constructor Details

This class inherits a constructor from Bnet::BnetResource

Instance Attribute Details

#maskObject (readonly)

Returns the value of attribute mask.



3
4
5
# File 'lib/bnet/wow/data/character_race.rb', line 3

def mask
  @mask
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/bnet/wow/data/character_race.rb', line 3

def name
  @name
end

#race_idObject (readonly)

Returns the value of attribute race_id.



3
4
5
# File 'lib/bnet/wow/data/character_race.rb', line 3

def race_id
  @race_id
end

#sideObject (readonly)

Returns the value of attribute side.



3
4
5
# File 'lib/bnet/wow/data/character_race.rb', line 3

def side
  @side
end