Method: OData::Model::Configuration::ClassMethods#use_entity_set

Defined in:
lib/odata/model/configuration.rb

#use_entity_set(set_name) ⇒ nil

Define the entity set to use for the current OData::Model. This method will record in the OData configuration the supplied name so that it can be used to communicate properly with the underlying OData::Service.

Parameters:

  • set_name (to_s)

    name of EntitySet used by OData service

Returns:

  • (nil)


57
58
59
60
# File 'lib/odata/model/configuration.rb', line 57

def use_entity_set(set_name)
  odata_config[:entity_set_name] = set_name.to_s
  nil
end