Module: Api::PlatePurposeIo::Extensions

Included in:
PlatePurpose
Defined in:
app/models/api/plate_purpose_io.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



12
13
14
# File 'app/models/api/plate_purpose_io.rb', line 12

def self.included(base)
  base.class_eval { extend ClassMethods }
end

Instance Method Details

#json_rootObject



16
17
18
# File 'app/models/api/plate_purpose_io.rb', line 16

def json_root
  'plate_purpose'
end