https://github.com/excid3/nine_to_five
https://github.com/excid3/nine_to_five
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/excid3/nine_to_five
- Owner: excid3
- License: mit
- Created: 2022-11-18T18:28:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-12T06:16:08.000Z (about 2 years ago)
- Last Synced: 2025-01-05T23:39:43.685Z (3 months ago)
- Language: Ruby
- Size: 28.3 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
- stars - excid3/nine_to_five - (Ruby)
README
# NineToFive
Rails plugin to enforce business hours.
## Usage
To customize the response for outside of business hours, add the following to an intializer.
```ruby
NineToFive.start_hour = 9
NineToFive.end_hour = 17
NineToFive.response = "Please come back during business hours."
```## Installation
Add this line to your application's Gemfile:```ruby
gem "nine_to_five"
```And then execute:
```bash
$ bundle
```Or install it yourself as:
```bash
$ gem install nine_to_five
```## Contributing
Contribution directions go here.## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).