Method: Frodo::Schema#enum_types

Defined in:
lib/frodo/schema.rb

#enum_typesHash<String, Frodo::Schema::EnumType>

Returns a list of EnumTypes defined by the schema.

Returns:



62
63
64
65
66
67
68
69
# File 'lib/frodo/schema.rb', line 62

def enum_types
  @enum_types ||= .xpath('//EnumType').map do |entity|
    [
      entity.attributes['Name'].value,
      EnumType.new(entity, self)
    ]
  end.to_h
end