lib/CricApi.rb in CricApi-0.2.1 vs lib/CricApi.rb in CricApi-0.2.2

- old
+ new

@@ -47,10 +47,17 @@ @options[:query][:unique_id] = unique_id response = self.class.post("/api/fantasySummary", @options) summary = clean_response(response) summary end - + + def fantasySquad(unique_id) + @options[:query][:unique_id] = unique_id + response = self.class.post("/api/fantasySquad", @options) + squad = clean_response(response) + squad + end + def playerFinder(name) @options[:query][:name] = name response = self.class.post("/api/playerFinder", @options) player = clean_response(response) player