Skip to content

Instantly share code, notes, and snippets.

View rodrigovirgilio's full-sized avatar

Rodrigo Virgilio rodrigovirgilio

View GitHub Profile
Back-end:
Ruby / Rails:
Guides:
http://guides.rubyonrails.org/
https://api.rubyonrails.org/
https://apidock.com/ruby/
Books (Free):
(pt-BR) https://leanpub.com/conhecendo-ruby
@rodrigovirgilio
rodrigovirgilio / challenge.rb
Last active September 7, 2023 09:11
Challenge Rainforest
class Challenge
require "json"
require "net/http"
URL = "https://www.letsrevolutionizetesting.com/challenge.json".freeze
MAX_ITERATIONS = 100
def self.call
# Initialize id_value with nil to start the loop
id_value = nil