yinx 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yinx/note_meta.rb +8 -0
- data/lib/yinx/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: 9f1209c0fbc1f5db1408c43ea73df8b4b3cbd08b
|
4
|
+
data.tar.gz: 47871421a490b75913c9ba9ea201fed6e08aa7bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39a52837f1c5a254bbfbfeac7503d44fe1ea13f4886162776b5384ff740d89025789dfb3cf44b263be33ef61424a2aace5a2797083591cd55d23092079202d5d
|
7
|
+
data.tar.gz: b83b4fb19d860ef55e7dfadc1b6d737b7d9f5b0fe6ca3023cc33d8b19aee801fdd5e987e7a799bc5fc0235dfde7adbb26bd81eabe05948e873c1ad4807d34da9
|
data/lib/yinx/note_meta.rb
CHANGED
@@ -31,6 +31,14 @@ class NoteMeta
|
|
31
31
|
@stack = (instance_variable_defined? :@stack) ? @stack : @store.stack_name(notebookGuid)
|
32
32
|
end
|
33
33
|
|
34
|
+
def created_at
|
35
|
+
Time.at created / 1000
|
36
|
+
end
|
37
|
+
|
38
|
+
def updated_at
|
39
|
+
Time.at updated / 1000
|
40
|
+
end
|
41
|
+
|
34
42
|
def to_h
|
35
43
|
@h = attr_methods.each_with_object({}) do |method, hash|
|
36
44
|
hash[method] = send method
|
data/lib/yinx/version.rb
CHANGED