Method: OCI::ResourceSearch::Models::StructuredSearchDetails#initialize
- Defined in:
- lib/oci/resource_search/models/structured_search_details.rb
#initialize(attributes = {}) ⇒ StructuredSearchDetails
Initializes the object
44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/oci/resource_search/models/structured_search_details.rb', line 44 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['type'] = 'Structured' super(attributes) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.query = attributes[:'query'] if attributes[:'query'] end |