Method: Azure::Profiles::Latest::WebSearch::WebSearchDataClass#initialize

Defined in:
lib/latest/modules/websearch_profile_module.rb

#initialize(configurable, base_url = nil, options = nil) ⇒ WebSearchDataClass

Returns a new instance of WebSearchDataClass.



58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/latest/modules/websearch_profile_module.rb', line 58

def initialize(configurable, base_url=nil, options=nil)
  @configurable, @base_url, @options = configurable, base_url, options

  @client_0 = Azure::CognitiveServices::WebSearch::V1_0::WebSearchClient.new(configurable.credentials, options)
  if(@client_0.respond_to?(:subscription_id))
    @client_0.subscription_id = configurable.subscription_id
  end
  add_telemetry(@client_0)
  @web = @client_0.web

  @model_classes = ModelClasses.new
end