class RuneterraCards::UnrecognizedFactionError
This exception is raised if the deck code contains an unexpected faction number. (see the table at {github.com/RiotGames/LoRDeckCodes} for what 'faction number' means.) This most likely means that Legends of Runeterra has a new faction and you need to update to a newer version of this library to handle it.
Check that the {#faction_number} causing issues is listed in {github.com/RiotGames/LoRDeckCodes the table on Github}. If it isn't then something else has gone wrong. If it is, and updating this library doesn't fix the issue, then the library needs updating - {github.com/zofrex/runeterra_cards/issues file an issue}.
Attributes
@return [Fixnum] the faction number that was unrecognized
Public Class Methods
@param [Fixnum] faction_number
The faction number we encountered and did not recognise.
# File lib/runeterra_cards/errors.rb, line 60 def initialize(faction_number) super( "Unrecognized faction number '#{faction_number}'."\ ' Possibly you need to update this library to a newer version') @faction_number = faction_number end