{"id":15405360,"url":"https://github.com/andyw8/grab","last_synced_at":"2025-11-14T18:09:10.168Z","repository":{"id":4574846,"uuid":"5716447","full_name":"andyw8/grab","owner":"andyw8","description":"Fetch multiple keys from a Hash","archived":false,"fork":false,"pushed_at":"2012-09-13T21:29:05.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-06T14:19:57.432Z","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/andyw8.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-07T12:23:08.000Z","updated_at":"2013-10-10T15:02:30.000Z","dependencies_parsed_at":"2022-09-21T18:12:06.635Z","dependency_job_id":null,"html_url":"https://github.com/andyw8/grab","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyw8%2Fgrab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyw8%2Fgrab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyw8%2Fgrab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyw8%2Fgrab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyw8","download_url":"https://codeload.github.com/andyw8/grab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240392072,"owners_count":19794009,"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","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-01T16:16:23.848Z","updated_at":"2025-11-14T18:09:10.100Z","avatar_url":"https://github.com/andyw8.png","language":"Ruby","readme":"[![Build Status](https://secure.travis-ci.org/andyw8/grab.png)](http://travis-ci.org/andyw8/grab)\n\n# Grab\n\nGrab provides an clean way to retrieve multiple values from a hash. Instead of:\n\n    def initialize(params)\n      foo = params[:foo]\n      bar = params[:bar]\n    end\n\nyou can write:\n\n    def initialize(params)\n      foo, bar = params.grab(:foo, :bar)\n    end\n\nIf you prefer a KeyError to be raised when a key is missing (like Array#fetch) then use `grab!` instead of `grab`.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'grab'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install grab\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyw8%2Fgrab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyw8%2Fgrab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyw8%2Fgrab/lists"}