Sha256: d70618d7375a6e5ce9a6fae2f02fb9555c3f4dcd3381d39ce52d71304280cfdb

Contents?: true

Size: 208 Bytes

Versions: 2

Compression:

Stored size: 208 Bytes

Contents

module MTG
  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

2 entries across 2 versions & 1 rubygems

Version Path
mtg_sdk-3.2.0 lib/mtg_sdk/type.rb
mtg_sdk-3.1.0 lib/mtg_sdk/type.rb