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


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

def self.included(base)
  base.class_eval do
    extend ClassMethods
  end
end

Instance Method Details

#json_rootObject


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

def json_root
  'plate_purpose'
end