Class: EgovUtils::EngineSchema

Inherits:
AzaharaSchema::ModelSchema
  • Object
show all
Defined in:
app/schemas/egov_utils/engine_schema.rb

Direct Known Subclasses

AddressSchema, UserSchema

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.engine_nameObject



4
5
6
# File 'app/schemas/egov_utils/engine_schema.rb', line 4

def self.engine_name
  self.name.split('::').first.underscore
end

Instance Method Details

#engine_nameObject



8
9
10
# File 'app/schemas/egov_utils/engine_schema.rb', line 8

def engine_name
  self.class.engine_name
end