class Warcraft::Account::WowAccount

Public Class Methods

new(client, data) click to toggle source
# File lib/warcraft/account/profile.rb, line 24
def initialize(client, data)
  @client = client
  @data = data
end

Public Instance Methods

characters() click to toggle source

@return [Array<Warcraft::Fragments::AccountCharacterFragment>]

# File lib/warcraft/account/profile.rb, line 36
def characters
  @characters ||= @data[:characters].map { |c| Fragments::AccountCharacterFragment.new(@client, c) }
end
id() click to toggle source

The WoW account ID @return [Integer]

# File lib/warcraft/account/profile.rb, line 31
def id
  @data[:id]
end