Method: FrOData::NavigationProperty.build

Defined in:
lib/frodata/navigation_property.rb

.build(nav_property_xml) ⇒ Object



22
23
24
25
26
27
# File 'lib/frodata/navigation_property.rb', line 22

def self.build(nav_property_xml)
  options = nav_property_xml.attributes.map do |name, attr|
    [name.downcase.to_sym, attr.value]
  end.to_h
  new(options)
end