Randomuser
Access Random User Generator API
Install / Use
/learn @humanshell/RandomuserREADME
Randomuser
This gem returns simple JSON/hash responses from the Random User Generator API.
Installation
Add this line to your application's Gemfile:
gem 'randomuser'
And then execute:
$ bundle
Or install it as a standalone gem with:
$ gem install randomuser
Usage
To request a single random user:
Randomuser.generate
To request multiple random users:
Randomuser.generate(5)
To request a single female random user:
Randomuser.generate_female
To request multiple female random users:
Randomuser.generate_female(5)
To request a single male random user:
Randomuser.generate_male
To request multiple male random users:
Randomuser.generate_male(5)
To request a specific user:
Randomuser.generate_seed('foobar')
For more information on this API, please see the Random User Generator site.
Tests
Testing works as usual:
git clone https://github.com/humanshell/randomuser.git
cd randomuser
bundle install
rake
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
