We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See ruby-grape/grape-with-roar#9.
Doesn't work:
require 'hyperclient' client = Hyperclient.new('http://localhost:9292/api') 3.times do |i| client.splines._post(spline: { name: i.to_s, reticulated: [true, false].sample }) end client.splines.each do |spline| puts "spline #{spline.id} #{spline.reticulated ? 'is' : 'is not'} reticulated" end client.splines.each(&:_delete)
Works:
require 'hyperclient' client = Hyperclient.new('http://localhost:9292/api') 3.times do |i| client.splines._post(spline: { name: i.to_s, reticulated: [true, false].sample }) end client = Hyperclient.new('http://localhost:9292/api') client.splines.each do |spline| puts "spline #{spline.id} #{spline.reticulated ? 'is' : 'is not'} reticulated" end client = Hyperclient.new('http://localhost:9292/api') client.splines.each(&:_delete)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
See ruby-grape/grape-with-roar#9.
Doesn't work:
Works:
The text was updated successfully, but these errors were encountered: