class RuneterraCards::UnrecognizedVersionError

This exception is raised if the deck code version number in the deck code is not one we can handle. This could mean this isn't a deck code (especially if the version number is very different to the one expected), or it could mean Riot has updated the deck code version and you need to update this library.

If updating this library fails to resolve the issue, and you are sure this is a deck code, check GitHub for an issue relating to this. If none exists, then file one! @see SUPPORTED_VERSION

Attributes

version[RW]

@return [Fixnum] the version number encountered in the deck code

Public Class Methods

new(expected, got) click to toggle source

@param [Fixnum] expected The version number we were expecting to see in the deck code. @param [Fixnum] got The version number we actually got.

Calls superclass method
# File lib/runeterra_cards/errors.rb, line 40
def initialize(expected, got)
  super(
    "Unrecognized deck code version number: #{got}, was expecting: #{expected}. "\
    'Possibly an invalid deck code, possibly you need to update the deck code library version.')
  @version = got
end