lib/stripe/resources/review.rb in stripe-10.5.0.pre.beta.1 vs lib/stripe/resources/review.rb in stripe-10.5.0
- old
+ new
@@ -9,18 +9,20 @@
class Review < APIResource
extend Stripe::APIOperations::List
OBJECT_NAME = "review"
+ # Approves a Review object, closing it and removing it from the list of reviews.
def approve(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/reviews/%<review>s/approve", { review: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
+ # Approves a Review object, closing it and removing it from the list of reviews.
def self.approve(review, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/reviews/%<review>s/approve", { review: CGI.escape(review) }),
params: params,