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
-
#attributes ⇒ Array
private
Returns an array of registered attributes.
-
#property_map ⇒ Hash
private
Returns the hash for the attribute to property mapping.
Instance Method Details
#attributes ⇒ Array
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.
17 18 19 |
# File 'lib/odata/model/attributes.rb', line 17 def attributes self.class.class_variable_get(:@@attributes) end |
#property_map ⇒ Hash
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.
24 25 26 |
# File 'lib/odata/model/attributes.rb', line 24 def property_map self.class.class_variable_get(:@@property_map) end |