Method: Frodo::Schema#entity_types

Defined in:
lib/frodo/schema.rb

#entity_typesArray<String>

Returns a list of entities defined by the schema.

Returns:

  • (Array<String>)


43
44
45
46
47
# File 'lib/frodo/schema.rb', line 43

def entity_types
  @entity_types ||= .xpath('//EntityType').map do |entity|
    entity.attributes['Name'].value
  end
end