Sha256: 68ed423e2df28709260f004c9366b67906d3a2d977fad290f21b0ecdfb0da522

Contents?: true

Size: 435 Bytes

Versions: 2

Compression:

Stored size: 435 Bytes

Contents

# frozen_string_literal: true

module Pokeedex # :nodoc:
  module Pokemon # :nodoc:
    ##
    # The base class for the Pokemon module. It holds the methods to search for a Pokemon by number or name
    class Base
      ##
      # Search for a Pokemon by number or name
      # @param query [String] the number or name of the Pokemon to search
      def self.search(query)
        Searcher::Base.new(query)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pokeedex-0.1.5 lib/pokeedex/pokemon/base.rb
pokeedex-0.1.0 lib/pokeedex/pokemon/base.rb