Sha256: fd0a1d22b08321ef0c1b865856a07350a75d82854a71fc68f3bb68fe06a54fbe

Contents?: true

Size: 312 Bytes

Versions: 8

Compression:

Stored size: 312 Bytes

Contents

module Pokemon
  class Legalities
    attr_accessor :expanded, :standard, :unlimited

    def self.from_json(json)
      legality = Legalities.new
      legality.expanded = json['expanded']
      legality.standard = json['standard']
      legality.unlimited = json['unlimited']

      legality
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pokemon_tcg_sdk-4.5.0 lib/pokemon_tcg_sdk/legalities.rb
pokemon_tcg_sdk-4.4.0 lib/pokemon_tcg_sdk/legalities.rb
pokemon_tcg_sdk-4.3.0 lib/pokemon_tcg_sdk/legalities.rb
pokemon_tcg_sdk-4.2.1 lib/pokemon_tcg_sdk/legalities.rb
pokemon_tcg_sdk-4.2.0 lib/pokemon_tcg_sdk/legalities.rb
pokemon_tcg_sdk-4.1.1 lib/pokemon_tcg_sdk/legalities.rb
pokemon_tcg_sdk-4.1.0 lib/pokemon_tcg_sdk/legalities.rb
pokemon_tcg_sdk-4.0.0 lib/pokemon_tcg_sdk/legalities.rb