Method: Azure::Core::Service#initialize

Defined in:
lib/azure/core/service.rb

#initialize(host = '', options = {}) ⇒ Service

Create a new instance of the Service

Parameters:

  • host (String) (defaults to: '')

    The hostname. (optional, Default empty)

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

    options including :client (optional, Default {})



26
27
28
29
# File 'lib/azure/core/service.rb', line 26

def initialize(host='', options = {})
  @host = host
  @client = options[:client] || Azure
end