This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'uri' | |
| require 'net/http' | |
| require 'json' | |
| class RainforestTest | |
| URL = 'https://www.letsrevolutionizetesting.com/challenge' | |
| def call | |
| execute | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ConvertCircleToPolygon | |
| EARTH_RADIUS = 6378137 | |
| def to_radians(angle_in_degrees) | |
| angle_in_degrees * Math::PI / 180 | |
| end | |
| def to_degrees(angle_in_radians) | |
| angle_in_radians * 180 / Math::PI | |
| end |