Method: Frodo::Schema#get_property_type

Defined in:
lib/frodo/schema.rb

#get_property_type(entity_name, property_name) ⇒ String

Get the property type for an entity from metadata.



141
142
143
# File 'lib/frodo/schema.rb', line 141

def get_property_type(entity_name, property_name)
  .xpath("//EntityType[@Name='#{entity_name}']/Property[@Name='#{property_name}']").first.attributes['Type'].value
end