Module: Sequencescape::Api::Resource::Json::ClassMethods

Defined in:
lib/sequencescape-api/resource/json.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



9
10
11
# File 'lib/sequencescape-api/resource/json.rb', line 9

def self.extended(base)
  base.delegate :json_root, :to => 'self.class'
end

Instance Method Details

#json_rootObject



13
14
15
# File 'lib/sequencescape-api/resource/json.rb', line 13

def json_root
  self.name.demodulize.underscore
end