Skip to content

Commit 8330a2b

Browse files
authored
Add comment on retrieve on how to pass parameters (stripe#1676)
1 parent 71858a8 commit 8330a2b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/stripe/api_resource.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ def refresh
111111
)
112112
end
113113

114+
# Retrieve by passing id like `retrieve(id)`
115+
# If passing parameters, pass a single map with parameters and the `id` as well.
116+
# For example: retrieve({id: some_id, some_param: some_param_value})
114117
def self.retrieve(id, opts = {})
115118
if name.include?("Stripe::V2")
116119
raise NotImplementedError,

0 commit comments

Comments
 (0)