Socket
Book a DemoInstallSign in
Socket

overtimer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

overtimer

0.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

overtimer

Calculates employee payroll info based on California laws (overtime, doubletime, etc)

Usage

Assuming you've installed the gem with gem install overtimer:

require 'rubygems'
require 'overtimer'

# Create a workweek using an array of hours per day for 1 week
ww = Overtimer::Workweek.new [17,12,15,11,12,4,0]

# Do the deductions meet your expectation (pull requests welcome)
ww.total == 71
ww.regular == 40,
ww.overtime == 23
ww.doubletime == 8

# What about only one of the days in the workweek?
wd = ww[0]

# How about these? Are they correct? They are for me anyway.
wd.total == 17
wd.regular == 8
wd.overtime == 4
wd.doubletime == 5

FAQs

Package last updated on 28 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.