Skip to content

Snazzah/weeb.rb

Repository files navigation

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.

About

A rubygem wrapper for weeb.sh

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages