projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add ssh keys page
[arvados.git]
/
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
'orvos#' + self.class.to_s.underscore
12
end
13
14
def etag
15
Digest::MD5.hexdigest(self.inspect).to_i(16).to_s(36)
16
end
17
end