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, =nil) @configurable, @base_url, = configurable, base_url, @client_0 = Azure::CognitiveServices::WebSearch::V1_0::WebSearchClient.new(configurable.credentials, ) 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 |