Sha256: 43b88e7160f1069aa7221e87bbb7411797cf8fb4bea1098c1c458a220e5f093e

Contents?: true

Size: 262 Bytes

Versions: 3

Compression:

Stored size: 262 Bytes

Contents

require_relative 'resource'

module MTG
  class Supertype < Resource
    include RestClient
    
    # Get all supertypes
    #
    # @return [Array<String>]  All supertypes
    def self.all
      RestClient.get('supertypes').body['supertypes']
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mtg_sdk-1.1.1 lib/mtg_sdk/supertype.rb
mtg_sdk-1.1.0 lib/mtg_sdk/supertype.rb
mtg_sdk-1.0.2 lib/mtg_sdk/supertype.rb