A rubygem wrapper for weeb.sh
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
.overcommit.yml
.rubocop.yml
.travis.yml
CHANGELOG.md
Gemfile
LICENSE.md
README.md
weeb.gemspec

README.md

Weeb.rb

Gem Version Gem Downloads Travis Inline docs Docs

A wrapper gem for the weeb.sh API.

Dependencies

Installation:

Just

gem install weeb

Examples

require 'weeb'
client = WeebSh::Client.new('Wolke #######', 'weeb/1.0.0/example')
# You can also set the API url by setting 'api_url'

# Using WeebSh::Client ties all interfaces together, but you can also use them seperately:
standalone_interface = WeebSh::Toph.new('Wolke #######', 'weeb/1.0.0/toph_example')

Toph

client.toph.list # [#<WeebSh::WeebImage, ...>]
client.toph.random(type: 'discord_memes') # #<WeebSh::WeebImage @url="https://cdn.weeb.sh/images/rkDQ-DVs-.png" @type="discord_memes" @nsfw=false>

Contributing

You should always run these two things in terminal (and use common sense!):

rubocop
inch suggest

License

The contents of this repository are licensed under the MIT license. A copy of the MIT license can be found in LICENSE.md.