Class: Azure::Profiles::Latest::WebSearch::WebSearchDataClass
- Inherits:
-
Object
- Object
- Azure::Profiles::Latest::WebSearch::WebSearchDataClass
- Defined in:
- lib/latest/modules/websearch_profile_module.rb
Direct Known Subclasses
Defined Under Namespace
Classes: ModelClasses
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#web ⇒ Object
readonly
Returns the value of attribute web.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(configurable, base_url = nil, options = nil) ⇒ WebSearchDataClass
constructor
A new instance of WebSearchDataClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#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, @options = 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 |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
76 77 78 79 80 81 82 |
# File 'lib/latest/modules/websearch_profile_module.rb', line 76 def method_missing(method, *args) if @client_0.respond_to?method @client_0.send(method, *args) else super end end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
56 57 58 |
# File 'lib/latest/modules/websearch_profile_module.rb', line 56 def base_url @base_url end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
56 57 58 |
# File 'lib/latest/modules/websearch_profile_module.rb', line 56 def configurable @configurable end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
56 57 58 |
# File 'lib/latest/modules/websearch_profile_module.rb', line 56 def model_classes @model_classes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
56 57 58 |
# File 'lib/latest/modules/websearch_profile_module.rb', line 56 def @options end |
#web ⇒ Object (readonly)
Returns the value of attribute web.
56 57 58 |
# File 'lib/latest/modules/websearch_profile_module.rb', line 56 def web @web end |