module OData::Model::Configuration
The OData::Model::Configuration
module encapsulates all the functionality specifically needed for OData::Model
to maintain internal configuration details about it’s relationship to the OData
gem.
Public Instance Methods
odata_entity()
click to toggle source
Returns the entity the current model is associated with, or a fresh entity. @return [OData::Entity] @api private
# File lib/odata/model/configuration.rb, line 17 def odata_entity @odata_entity ||= self.class.odata_service[odata_entity_set_name].new_entity end
odata_entity_set()
click to toggle source
Returns the OData::EntitySet the current model is related to. @return [OData::EntitySet] @api private
# File lib/odata/model/configuration.rb, line 32 def odata_entity_set self.class.odata_entity_set end
odata_entity_set_name()
click to toggle source
Returns the name of the OData::EntitySet the current model is related to. @return [String] @api private
# File lib/odata/model/configuration.rb, line 25 def odata_entity_set_name self.class.odata_entity_set_name end