{"id":16655517,"url":"https://github.com/aaronrenner/telnyx_interview","last_synced_at":"2025-12-27T10:08:23.110Z","repository":{"id":138358950,"uuid":"51024139","full_name":"aaronrenner/telnyx_interview","owner":"aaronrenner","description":null,"archived":false,"fork":false,"pushed_at":"2016-02-03T19:21:41.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T18:45:07.282Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aaronrenner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-03T19:21:21.000Z","updated_at":"2016-02-03T19:21:42.000Z","dependencies_parsed_at":"2023-04-26T09:47:20.216Z","dependency_job_id":null,"html_url":"https://github.com/aaronrenner/telnyx_interview","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aaronrenner/telnyx_interview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronrenner%2Ftelnyx_interview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronrenner%2Ftelnyx_interview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronrenner%2Ftelnyx_interview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronrenner%2Ftelnyx_interview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaronrenner","download_url":"https://codeload.github.com/aaronrenner/telnyx_interview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronrenner%2Ftelnyx_interview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28077395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-27T02:00:05.897Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T09:53:16.680Z","updated_at":"2025-12-27T10:08:23.094Z","avatar_url":"https://github.com/aaronrenner.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telnyx Interview App\n\n## Getting Started\n\nTo start developing the project, cd into this directory and run the following:\n\n```bash\nbin/setup\n```\n\n## Gems Used\n\nProduction gems\n\n* money-rails - Value objects for money. Doesn't make you keep track of if\n  amounts are in dollars or cents.\n* rest-client - Used for making http requests.\n\nTest gems\n\n* rspec-rails - Rspec testing framework\n* webmock - Allows mocking and verifing http requests\n* factory_girl - helps with quickly building models for tests\n\nDevelopment Gems\n\n* spring, spring-command-rspec - Rails application preloader that makes running\n  tests faster\n* dotenv-rails - Allows setting environment variables in a dotenv file. This\n  makes it so you don't have to hard code secrets like api keys.\n* pry - Allows you to stop the application and inspect the state of the code. I\n  used this while trying to figure out some issues with Webmock\n\n## Assumptions\n\n* Date parameters for api are in the YYYY-MM-DD format\n\n## Notes\n\nI ran out of time on this project, but would be happy to continue and finish\nwhat I was thinking.\n\nHere are some thoughts I have about finishing the application\n\n* `OmegaPricing`- This pricing client needs to handle error cases. I am debating\n  on whether or not to return a response object that needs to be queried to see\n  if it completed successfully, or if I just raise an Error.\n    ```ruby\n      api_client = OmegaPricing.new(api_key)\n      results = api_client.get_pricing_records(start_date, end_date)\n\n      import_results(results)\n\n      # vs.\n      api_client = OmegaPricing.new(api_key)\n      response = OmegaPricing.get_pricing_records(start_date, end_date)\n\n      if response.success?\n        import_results(response.results)\n      else\n        # deal with the error (log, raise exeception, etc)\n      end\n    ```\n  I am leaning toward returning a response object because it's more obvious to\n  the caller that the error case needs to be dealt with.\n\n* `PricingImport` - This class still needs its logic, but would be the main\n  command that controls importing pricing records from the OmegaPricing client.\n  I'm not sure if `run` will be a class or instance method, yet. If this ends up\n  not needing to return much output, then it would probably be fine as a class\n  level function. However, if we need to return logs of what happend or other\n  additional information, it might be beneficial to have `run` be an instance\n  method and treat `PricingImport` as a single use command object.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronrenner%2Ftelnyx_interview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaronrenner%2Ftelnyx_interview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronrenner%2Ftelnyx_interview/lists"}