qismo 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/qismo/model.rb +7 -0
- data/lib/qismo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dac88cb1f371d51c88e85081b67c5a76780b52213a09b63f72e09354d877d8f6
|
4
|
+
data.tar.gz: bc5767705a8da37415349f22734b0001197d5b42d49d158a5784c4894c1ca647
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7ea544beb490433c2e61a3b6790f4833511fbc3c89732000404603d2a5971fd47e179b1ada028a8abfd07086feaefa48a663fd7557a550ce4e489463fc5a786
|
7
|
+
data.tar.gz: cbb1ceb24dcc1078a27465a362b269c6d6707fe4ccca1e585c9d5e8a7c53298c2b6724d0ab101cd1185518daf8b8c966c76997300a251ecdb53174d4e7d85faf
|
data/Gemfile.lock
CHANGED
data/lib/qismo/model.rb
CHANGED
@@ -10,6 +10,13 @@ module Qismo
|
|
10
10
|
elsif value.is_a?(Hash)
|
11
11
|
self.class.new(value)
|
12
12
|
# instance_variable_set("@#{key}", self.class.new(value))
|
13
|
+
elsif value.is_a?(TrueClass) || value.is_a?(FalseClass)
|
14
|
+
method_name = key.to_s.delete_prefix("is_")
|
15
|
+
method_name = "#{method_name}?".to_sym
|
16
|
+
|
17
|
+
self.class.define_method(method_name) { value }
|
18
|
+
|
19
|
+
value
|
13
20
|
else
|
14
21
|
value
|
15
22
|
# instance_variable_set("@#{key}", value)
|
data/lib/qismo/version.rb
CHANGED