Sha256: 495cd24aeb4cf97c8cd5237f31ba90619e43dbee634a51ae6d36fe655dc48df5

Contents?: true

Size: 212 Bytes

Versions: 3

Compression:

Stored size: 212 Bytes

Contents

module Pokemon
  class Type
    include RestClient
    
    # Get all types
    #
    # @return [Array<String>]  All types
    def self.all
      RestClient.get('types').body['types']
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pokemon_tcg_sdk-3.0.0 lib/pokemon_tcg_sdk/type.rb
pokemon_tcg_sdk-2.5.0 lib/pokemon_tcg_sdk/type.rb
pokemon_tcg_sdk-2.4.0 lib/pokemon_tcg_sdk/type.rb