Sha256: a147278bea66b9e02850c4550c140579a52c08bbd353988a0d609c250229dd0f
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
module OData # Internally used helper class for storing an entity property's metadata. This class shouldn't be used directly. class PropertyMetadata # The property name attr_accessor :name # The property EDM type attr_accessor :type # Is the property nullable? attr_accessor :nullable # Feed customization target path attr_accessor :fc_target_path # Should the property appear in both the mapped schema path and the properties collection attr_accessor :fc_keep_in_content # Creates a new instance of the Class Property class # # ==== Required Attributes # property_element: The property element from the EDMX def initialize(property_element) @name = property_element['Name'] @type = property_element['Type'] @nullable = (property_element['Nullable'] && property_element['Nullable'] == "true") || false @fc_target_path = property_element['FC_TargetPath'] @fc_keep_in_content = (property_element['FC_KeepInContent']) ? (property_element['FC_KeepInContent'] == "true") : nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_odata-0.0.10 | lib/ruby_odata/property_metadata.rb |