King Of Time
Ruby API library for daily check-in/check-out operation.
Screenshot
Installation
Add this line to your application's Gemfile:
gem 'king_of_time'
And then execute:
$ bundle
Or install it yourself as:
$ gem install king_of_time
Usage
require 'king_of_time'
king_of_time = KingOfTime.new({
timerecorder_id: 1111111111,
employee_id: 2222222222,
name: '松倉 友樹',
password: 'your secret password',
})
# check in
king_of_time.check_in
# start break
king_of_time.start_break
# end break
king_of_time.end_break
# check out
king_of_time.check_out
Test
% rspec
Future work
- I18n
- Timezone (Currently fixed with +9:00)
Development
After checking out the repo, run bin/setup
to install dependencies. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/matsubo/king_of_time.