lib/mtg_sdk/card.rb in mtg_sdk-3.1.0 vs lib/mtg_sdk/card.rb in mtg_sdk-3.2.0

- old
+ new

@@ -7,19 +7,19 @@ attr_accessor :name, :layout, :names, :mana_cost, :cmc, :colors, :type, :supertypes, :subtypes, :types, :rarity, :text, :flavor, :artist, :number, :power, :toughness, :loyalty, :multiverse_id, :variations, :watermark, :border, :timeshifted, :hand, :life, :reserved, :release_date, :starter, :rulings, :foreign_names, :printings, :original_text, :original_type, :legalities, - :source, :image_url, :set, :id, :set_name - + :source, :image_url, :set, :id, :set_name, :color_identity + # Get the resource string # # @return [String] The API resource string def self.Resource "cards" end - + # Find a single card by the card multiverse id # # @param id [Integer] the multiverse id # @return [Card] the Card object response def self.find(id) @@ -30,15 +30,15 @@ # # @return [Array<Card>] Array of Card objects def self.all QueryBuilder.new(Card).all end - + # Adds a parameter to the hash of query parameters # # @param args [Hash] the query parameter # @return [QueryBuilder] the QueryBuilder def self.where(args) QueryBuilder.new(Card).where(args) end end -end \ No newline at end of file +end