QSID 0.2.1 → 0.2.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.
- data/lib/QSID.rb +8 -5
- metadata +2 -2
data/lib/QSID.rb
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
class QSID
|
2
|
+
|
3
|
+
## This is what is called to create a new ID
|
4
|
+
def self.newID
|
5
|
+
self.id = self._makeID
|
6
|
+
return self.id
|
7
|
+
end
|
8
|
+
|
9
|
+
private
|
2
10
|
# Timestamp
|
3
11
|
def self.timestamp
|
4
12
|
@timestamp
|
@@ -63,11 +71,6 @@ class QSID
|
|
63
71
|
end
|
64
72
|
|
65
73
|
|
66
|
-
|
67
|
-
def self.newID
|
68
|
-
self.id = self._makeID
|
69
|
-
return self.id
|
70
|
-
end
|
71
74
|
def self._makeID
|
72
75
|
time = Time.now
|
73
76
|
id = ''
|