lib/odata/entity_container.rb
def entity_sets
      @entity_sets ||= metadata.xpath(".//EntitySet").map do |entity_set|
        [
          entity_set.attributes['EntityType'].value.gsub("#{namespace}.", ''),
          entity_set.attributes['Name'].value
        ]
      end.to_h
    end
# Returns a hash of EntitySet names keyed to their respective EntityType name
Returns a hash of EntitySet names keyed to their respective EntityType name
Returns a hash of EntitySet names keyed to their respective EntityType name
def entity_sets
      @entity_sets ||= metadata.xpath(".//EntitySet").map do |entity_set|
        [
          entity_set.attributes['EntityType'].value.gsub("#{namespace}.", ''),
          entity_set.attributes['Name'].value
        ]
      end.to_h
    end
def entity_sets @entity_sets ||= metadata . xpath ( ".//EntitySet" ) . map do | entity_set | [ entity_set . attributes [ 'EntityType' ] . value . gsub ( "#{namespace}." , '' ) , entity_set . attributes [ 'Name' ] . value ] end . to_h end
Returns a hash of EntitySet names keyed to their respective EntityType name
Returns a hash of EntitySet names keyed to their respective EntityType name