Class: ContextDev::Resources::Industry
- Inherits:
-
Object
- Object
- ContextDev::Resources::Industry
- Defined in:
- lib/context_dev/resources/industry.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Industry
constructor
private
A new instance of Industry.
-
#retrieve_naics(input:, max_results: nil, min_results: nil, timeout_ms: nil, request_options: {}) ⇒ ContextDev::Models::IndustryRetrieveNaicsResponse
Some parameter documentations has been truncated, see Models::IndustryRetrieveNaicsParams for more details.
Constructor Details
#initialize(client:) ⇒ Industry
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Industry.
45 46 47 |
# File 'lib/context_dev/resources/industry.rb', line 45 def initialize(client:) @client = client end |
Instance Method Details
#retrieve_naics(input:, max_results: nil, min_results: nil, timeout_ms: nil, request_options: {}) ⇒ ContextDev::Models::IndustryRetrieveNaicsResponse
Some parameter documentations has been truncated, see Models::IndustryRetrieveNaicsParams for more details.
Classify any brand into 2022 NAICS industry codes from its domain or name.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/context_dev/resources/industry.rb', line 26 def retrieve_naics(params) parsed, = ContextDev::IndustryRetrieveNaicsParams.dump_request(params) query = ContextDev::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "web/naics", query: query.transform_keys( max_results: "maxResults", min_results: "minResults", timeout_ms: "timeoutMS" ), model: ContextDev::Models::IndustryRetrieveNaicsResponse, options: ) end |