forked from ManageIQ/manageiq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop @hours_in_interval instance variable on ChargebackRateDetail
ChargebackRateDetail object should not know anything about some interval. It should just maintain the logic to calculate the cost. The @hours_in_interval is a function of given consumption slice. Moreover, there is a problem with @hours_in_interval -- the interval can be for instance one week, and the rate can be monthly, then we divide monthly cost by week. B@ng!
- Loading branch information
Showing
2 changed files
with
14 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters