projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' into 2272-setup-user-in-workbench
[arvados.git]
/
services
/
api
/
lib
/
kind_and_etag.rb
1
module KindAndEtag
2
3
def self.included(base)
4
base.extend(ClassMethods)
5
end
6
7
module ClassMethods
8
end
9
10
def kind
11
'arvados#' + self.class.to_s.camelcase(:lower)
12
end
13
14
def etag
15
Digest::MD5.hexdigest(self.inspect).to_i(16).to_s(36)
16
end
17
end