lib/mtg_sdk/set.rb in mtg_sdk-1.0.2 vs lib/mtg_sdk/set.rb in mtg_sdk-1.1.0
- old
+ new
@@ -24,9 +24,16 @@
end
new.from_json(response.body['set'].to_json)
end
+ # Get all sets from a query
+ #
+ # @return [Array<Set>] Array of Set objects
+ def self.all
+ get
+ end
+
# Generate a booster pack for a specific set
#
# @param code [String] the Set code
# @return [Array<Card>] Array of Card objects
def self.generate_booster(code)