{"id":34989654,"url":"https://github.com/serv/mortgagerb","last_synced_at":"2026-05-14T16:33:07.075Z","repository":{"id":227021556,"uuid":"769849163","full_name":"serv/mortgagerb","owner":"serv","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-15T21:55:23.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-18T04:46:25.546Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serv.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-10T08:32:18.000Z","updated_at":"2025-02-15T21:55:17.000Z","dependencies_parsed_at":"2024-03-19T08:24:23.798Z","dependency_job_id":null,"html_url":"https://github.com/serv/mortgagerb","commit_stats":null,"previous_names":["serv/mortgagerb"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/serv/mortgagerb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serv%2Fmortgagerb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serv%2Fmortgagerb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serv%2Fmortgagerb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serv%2Fmortgagerb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serv","download_url":"https://codeload.github.com/serv/mortgagerb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serv%2Fmortgagerb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33033181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":"2025-12-27T01:50:18.427Z","updated_at":"2026-05-14T16:33:07.070Z","avatar_url":"https://github.com/serv.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mortgagerb\n\nCalculates monthly payment for various types of mortgage. To learn more about how the calculations are done, see [amortizing loan](https://en.wikipedia.org/wiki/Amortizing_loan).\n\nCurrently supported loan types\n\n- 30 year fixed\n- Others coming soon\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add mortgagerb \n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    $ gem install mortgagerb\n\n## Usage\n\n```ruby\nrequire 'mortgagerb'\n\nrate = 5.5\nprincipal = 1000000\ntype = :thirty_year_fixed \n\nscenario = Mortgagerb::Scenario.new(principal, rate, type)\namortization_payment = scenario.calculate # 5677.89\n```\n\n### Get the 30-Yr FRM and 15-Yr FRM from Freddie Mac\n\nThe gem will scrape Freddie Mac's website in order to get the rates.\nUse this responsibly. Do not over-scrape the website. Cache the value locally.\nCheck for new data seldomly.\n\n```ruby\nrequire 'mortgagerb'\n\nrates_now = Mortgagerb::FreddieMac.now\nfrm30 = rates_now[:fmr30] # 7.77\nfrm15 = rates_now[:frm15] # 6.66\n```\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/serv/mortgagerb.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserv%2Fmortgagerb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserv%2Fmortgagerb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserv%2Fmortgagerb/lists"}