Method: OData::Model::Configuration#odata_entity
- Defined in:
- lib/odata/model/configuration.rb
#odata_entity ⇒ OData::Entity
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 entity the current model is associated with, or a fresh entity.
17 18 19 |
# File 'lib/odata/model/configuration.rb', line 17 def odata_entity @odata_entity ||= self.class.odata_service[odata_entity_set_name].new_entity end |