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('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

Please run rubocop while testing. That's all I ask. (and common sense)

License

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