recordx 0.1.19 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e1fa7f7c5f92f5e4742c0c1ec1e337ef47c7fb2
4
- data.tar.gz: b747b027f82bc5b6238205a02dc7c93b07749603
3
+ metadata.gz: bbe59ae2945142a66fa0965c6f604b52ec0c7951
4
+ data.tar.gz: f7ae3595ab6dada1489ce9b61c8491657f1cf901
5
5
  SHA512:
6
- metadata.gz: 1342521106b1d2dd7be32a35c2f81300735a4dc493d6680f110ce598deb13df9d1eea5c2f80829e634895538281b039a9a71971ed28d9a2e6a78dd7c6dd504d6
7
- data.tar.gz: 38c779b6158793d9150260bc0c67d798a87c33c7ca92a4b83e2658ea24397ca9bbafb63ab2ffee427e0d40230cf8a9dbf92c5c8b99dcf72f21c9aec30b7ea5e9
6
+ metadata.gz: 5a94c1b72173e70a64ee9f284cb0f046f97f5a8ea4c93b5f3e4cb0edb0a0ff0a9470c85bc082aaf54224ae4be6becc461c00ee7ded0c665c679a150d44295487
7
+ data.tar.gz: 8c8f1d31ea652e376c2fc9068ed194f02a765856fee8de8cb0da2beba83097548e94fae14af45e2ed002d2a0cd37b85220a066c543e2fd0353e5d24129e0ad61
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/recordx.rb CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  class RecordX
7
7
 
8
- attr_reader :id
8
+ attr_reader :id, :created, :last_modified
9
9
 
10
10
  class RXHash < Hash
11
11
 
@@ -22,7 +22,7 @@ class RecordX
22
22
  end
23
23
  end
24
24
 
25
- def initialize(x=nil, callerx=nil, id=nil )
25
+ def initialize(x=nil, callerx=nil, id=nil, created=nil, last_modified=nil)
26
26
 
27
27
  h = if x.is_a? Hash then x
28
28
 
@@ -41,7 +41,8 @@ class RecordX
41
41
 
42
42
  end
43
43
 
44
- @callerx, @id = callerx, id
44
+ @callerx, @id, @created, @last_modified = callerx, id, \
45
+ created, last_modified
45
46
  @h = RXHash.new(self).merge h
46
47
  h.each {|name,val| attr_accessor2(name.to_s, val) }
47
48
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recordx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  AUf83m/FAQuM1QqHmmadyxeL0KB1GISpCURZ0bn5HkDnJipCM3nwcHTxOpqLMlst
32
32
  cb3TqEykWFs+mA==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-03-10 00:00:00.000000000 Z
34
+ date: 2015-04-06 00:00:00.000000000 Z
35
35
  dependencies: []
36
36
  description:
37
37
  email: james@r0bertson.co.uk
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  version: '0'
61
61
  requirements: []
62
62
  rubyforge_project:
63
- rubygems_version: 2.2.2
63
+ rubygems_version: 2.4.6
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: A kind of Hash which can also use accessor methods to store or retrieve values.
metadata.gz.sig CHANGED
Binary file