Class: OpenAPIParser::Schemas::Schema

Inherits:
Object
  • Object
show all
Defined in:
lib/cocina/models.rb

Overview

Patch OpenAPIParser::Schemas::Schema so it can tell us its name, the way Openapi3Parser schemas do.

Instance Method Summary collapse

Instance Method Details

#nameObject



50
51
52
# File 'lib/cocina/models.rb', line 50

def name
  object_reference.split('/').last
end