From b1cf815b0e00020a054cc205b94c389b0f606c2e Mon Sep 17 00:00:00 2001 From: Andrew Backes Date: Tue, 19 Apr 2016 16:42:51 -0500 Subject: [PATCH] Resolves #3 - 'names' is null --- lib/mtg_sdk/representers/card_representer.rb | 3 ++- lib/mtg_sdk/version.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/mtg_sdk/representers/card_representer.rb b/lib/mtg_sdk/representers/card_representer.rb index aecd8bb..3029ff9 100644 --- a/lib/mtg_sdk/representers/card_representer.rb +++ b/lib/mtg_sdk/representers/card_representer.rb @@ -32,7 +32,7 @@ module CardRepresenter property :hand property :life property :reserved - property :release_date, as: :release_date, type: Date + property :release_date, as: :releaseDate, type: Date property :starter property :original_text, as: :originalText property :original_type, as: :originalType @@ -41,6 +41,7 @@ module CardRepresenter property :id property :image_url, as: :imageUrl + collection :names collection :supertypes collection :subtypes collection :types diff --git a/lib/mtg_sdk/version.rb b/lib/mtg_sdk/version.rb index 2b65011..8dd17ad 100644 --- a/lib/mtg_sdk/version.rb +++ b/lib/mtg_sdk/version.rb @@ -1,3 +1,3 @@ module MTG - VERSION = "2.0.0" + VERSION = "2.0.1" end