Sha256: d0fba1ba17f91d47c5aa22f8d29f8ff1cb072db8d79d6692cfbbe80323135c40

Contents?: true

Size: 237 Bytes

Versions: 3

Compression:

Stored size: 237 Bytes

Contents

require_relative 'resource'

module MTG
  class Type < Resource
    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
mtg_sdk-1.1.1 lib/mtg_sdk/type.rb
mtg_sdk-1.1.0 lib/mtg_sdk/type.rb
mtg_sdk-1.0.2 lib/mtg_sdk/type.rb