#kd-listobject

1 messages · Page 1 of 1 (latest)

pure kelp
#

Hello 👋

#

Just so that I'm on the same page, can you confirm which API endpoint is this for?

inner creek
#

It is for any of the list calls.

#

For example, Stripe::Customer.list({limit: 5}) creates a Stripe::ListObject in Ruby. I would like to add items to this.

#

something like cus_list = Stripe::Customer.list({limit: 5})

#

cus_list.append(my_value)

pure kelp
#

So you can treat the ListObject as a hash and set the values accordingly

like

  cus_list["john"] = "doe"