Method: Frodo::Schema#enum_types
- Defined in:
- lib/frodo/schema.rb
#enum_types ⇒ Hash<String, Frodo::Schema::EnumType>
Returns a list of EnumTypes defined by the schema.
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 |