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

+ (Object) extended(base)



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

- (Object) json_root



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

def json_root
  self.name.demodulize.underscore
end