0.0
No release in over a year
Wrapper for breaking bad API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 6.0
 Project Readme

BreakingBad

RubyGems: https://rubygems.org/gems/breaking_bad

This is a gem wrapper for the Breaking Bad API.

this gem was created to learn how works the gems on ruby.

this gem use ruby threads to make the api response faster and more reliable.

Rubycritic:

Screenshot 2021-12-31 001448

you can easily access the Breaking Bad API by using the following code:

Installation

Add this line to your application's Gemfile:

gem 'breaking_bad'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install breaking_bad

Usage

Basic Methods for all enpoints:

$ all
$ find(id)
$ random (in this method you can pass a author name to get ramdom quotes from that author).

Get all characters:

$ BreakingBad::Character.find_all
$ BreakingBad::Character.find_by_category(category)
$ BreakingBad::Character.find_by_name(name)
$ BreakingBad::Character.find_with_limit(limit)

Get all Episodes:

$ BreakingBad::Episode.find_all
$ BreakingBad::Episode.find_by_series(series)

Get all quotes

$ BreakingBad::Quote.find_all
$ BreakingBad::Quote.find_by_author(author)
$ BreakingBad::Quote.find_by_series(series)

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To 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.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/breaking_bad. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the BreakingBad project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.