{"id":18605307,"url":"https://github.com/fny/classy_plivo","last_synced_at":"2025-05-17T09:41:27.008Z","repository":{"id":32139934,"uuid":"35712699","full_name":"fny/classy_plivo","owner":"fny","description":"Classy wrapper for the Plivo Ruby library","archived":false,"fork":false,"pushed_at":"2015-05-16T15:04:35.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T07:03:46.115Z","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/fny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-16T06:28:02.000Z","updated_at":"2015-05-16T06:28:12.000Z","dependencies_parsed_at":"2022-09-07T07:11:29.682Z","dependency_job_id":null,"html_url":"https://github.com/fny/classy_plivo","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fclassy_plivo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fclassy_plivo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fclassy_plivo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fclassy_plivo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fny","download_url":"https://codeload.github.com/fny/classy_plivo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254594999,"owners_count":22097466,"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-11-07T02:20:49.414Z","updated_at":"2025-05-17T09:41:26.949Z","avatar_url":"https://github.com/fny.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ClassyPlivo :phone:\n\n[![Gem Version](https://badge.fury.io/rb/classy_plivo.svg)](http://badge.fury.io/rb/classy_plivo)\n[![Build Status](https://travis-ci.org/fny/classy_plivo.svg?branch=master)](https://travis-ci.org/fny/classy_plivo)\n[![Test Coverage](https://codeclimate.com/github/fny/classy_plivo/badges/coverage.svg)](https://codeclimate.com/github/fny/classy_plivo)\n[![Code Climate](https://codeclimate.com/github/fny/classy_plivo/badges/gpa.svg)](https://codeclimate.com/github/fny/classy_plivo)\n[![Dependency Status](https://gemnasium.com/fny/classy_plivo.svg)](https://gemnasium.com/fny/classy_plivo)\n\nA classy and minimalistic wrapper for the [Plivo Ruby library](https://github.com/plivo/plivo-ruby).\n\n## Overview\n\n```ruby\n# This matches Plivo::RestAPI signature\nclassy_api = ClassyPlivo::RestAPI.new('auth_id', 'auth_token')\nclassy_response = classy_api.get_account\n\n# =\u003e ClassyPlivo::Response\nclassy_response.nonsense\n# =\u003e NoMethodError\nclassy_response.error?\n# =\u003e true for 4XX and 5XX errors\nclassy_response.http_status\n# =\u003e Integer response code\nclassy_response.payload\n# =\u003e Twilio payload hash: { api_id: '1', 'message' =\u003e 'success' }\nclassy_response.payload_key\n# =\u003e Value of payload['payload_key'] or ClassyPlivo::Response:::NoPayloadKeyError\nclassy_response.has_payload_key?('whatever')\n# =\u003e true if the payload provides the requested key\n```\n\nA lot of this behavior relies on overriding `#method_missing`. For more details, check out the tests in the `test` directory and the source code.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'classy_plivo'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install classy_plivo\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment. Run `bundle exec rake test` to run the test suite.\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` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\n1. Fork it ( https://github.com/fny/classy_plivo/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffny%2Fclassy_plivo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffny%2Fclassy_plivo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffny%2Fclassy_plivo/lists"}