tippy_mun 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/tippy_mun/builder.rb +2 -2
- data/lib/tippy_mun/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2be61ca133c53a687bd0740713422008373c809d
|
|
4
|
+
data.tar.gz: e5e6b4bbe90aa4e968f5c9fd941f3329f1eb82ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f94aa480b6657734e00058b74b1957aeff8a1fd89c56c3b32d023d2260910ff5e35585c388578341ee02bcf764a33af24e90732da683c95039cbda6a21882bb
|
|
7
|
+
data.tar.gz: f0acc65ee44eb15112cc4d83005eda5a1a0e8cc7e8313dce02f7d9e71d091728f30dc236ffda3c009dafbb63d448e83d6f1bb69513868a8a3644b616d27e973f
|
data/Gemfile.lock
CHANGED
data/lib/tippy_mun/builder.rb
CHANGED
|
@@ -6,7 +6,7 @@ end
|
|
|
6
6
|
|
|
7
7
|
module TippyMun
|
|
8
8
|
class Builder
|
|
9
|
-
def initialize :total, :
|
|
9
|
+
def initialize :total, :gratuity
|
|
10
10
|
@total = total
|
|
11
11
|
@gratuity = gratuity
|
|
12
12
|
end
|
|
@@ -29,7 +29,7 @@ module TippyMun
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def calculation gratuity = @gratuity
|
|
32
|
-
@total += @total * (@
|
|
32
|
+
@total += @total * (@gratuity.to_f / 100)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
end
|
data/lib/tippy_mun/version.rb
CHANGED