Class: Pokemon::Subtype

Inherits:
Object
  • Object
show all
Includes:
RestClient
Defined in:
lib/pokemon_tcg_sdk/subtype.rb

Class Method Summary collapse

Methods included from RestClient

get

Class Method Details

.allArray<String>

Get all subtypes

Returns:

  • (Array<String>)

    All subtypes



8
9
10
# File 'lib/pokemon_tcg_sdk/subtype.rb', line 8

def self.all
  RestClient.get('subtypes')['data']
end