nyros_form 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nyros_form.rb +1 -1
- data/lib/nyros_form/builder.rb +24 -20
- data/lib/nyros_form/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c67f19a2867f180d6a6f9db11b5f5013c9774c3840bf42f95663e572a8412499
|
4
|
+
data.tar.gz: e3fd75033004ac6a0af365fb7fd797fc9dd40d9277f87856178cd3bdae589ebb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38da43dcc16d935a42180105500af77c1de71a24af413a9fb64a3ca596b77e2a917286bdb693b76357f899703c20dd6fce31aadd9a5802952b6d459e63706d6c
|
7
|
+
data.tar.gz: 1d90a76e51031292524d656261e85d83405d0964b22b5c78c5cc2f0d46e1e8c2f8fb3412adaaa340bde4780d846b26ad46680f02dedf1a7727527f35200e6352
|
data/lib/nyros_form.rb
CHANGED
data/lib/nyros_form/builder.rb
CHANGED
@@ -14,26 +14,30 @@ module NyrosForm
|
|
14
14
|
@gratuity = gratuity
|
15
15
|
end
|
16
16
|
|
17
|
-
def
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
end
|
25
|
-
|
26
|
-
def
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
end
|
17
|
+
# def name
|
18
|
+
# puts "Hello world!"
|
19
|
+
# end
|
20
|
+
|
21
|
+
# def generate
|
22
|
+
# return calculation if number_based?
|
23
|
+
# string_based
|
24
|
+
# end
|
25
|
+
|
26
|
+
# def number_based?
|
27
|
+
# (@gratuity.is_a? Numeric) || (@gratuity.integer?)
|
28
|
+
# end
|
29
|
+
|
30
|
+
# def string_based
|
31
|
+
# case @gratuity.downcase
|
32
|
+
# when 'high' then calculation 100
|
33
|
+
# when 'standard' then calculation 200
|
34
|
+
# when 'low' then calculation 300
|
35
|
+
# end
|
36
|
+
# end
|
37
|
+
|
38
|
+
# def calculation gratuity = @gratuity
|
39
|
+
# @total += @total * (gratuity.to_f / 100)
|
40
|
+
# end
|
37
41
|
end
|
38
42
|
|
39
43
|
end
|
data/lib/nyros_form/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nyros_form
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- raju rekadi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|