Module: OData::Model::Attributes

Extended by:
ActiveSupport::Concern
Included in:
OData::Model
Defined in:
lib/odata/model/attributes.rb

Overview

The OData::Model::Attributes module encapsulates all the functionality specifically needed for OData::Model to support the mapping of OData::Entity properties to attributes on the class that includes OData::Model.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#attributesArray

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns an array of registered attributes.

Returns:

  • (Array)


17
18
19
# File 'lib/odata/model/attributes.rb', line 17

def attributes
  self.class.class_variable_get(:@@attributes)
end

#property_mapHash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the hash for the attribute to property mapping.

Returns:

  • (Hash)


24
25
26
# File 'lib/odata/model/attributes.rb', line 24

def property_map
  self.class.class_variable_get(:@@property_map)
end