Method: OData::Service.open

Defined in:
lib/odata/service.rb

.open(service_url, options = {}) ⇒ OData::Service

Opens the service based on the requested URL and adds the service to Registry

Parameters:

  • service_url (String)

    the URL to the desired OData service

  • options (Hash) (defaults to: {})

    options to pass to the service

Returns:



29
30
31
# File 'lib/odata/service.rb', line 29

def self.open(service_url, options = {})
  Service.new(service_url, options)
end