lib/buckybox/api.rb in buckybox-api-1.3.0 vs lib/buckybox/api.rb in buckybox-api-1.3.1

- old
+ new

@@ -60,9 +60,13 @@ def create_order(json_order) query :post, "/orders", json_order end + def flush_cache! + @cache = nil + end + private def check_response!(response) unless [200, 201].include? response.code message = response.parsed_response["message"] || response.parsed_response