Method: DocuSign_Monitor::WebQuery#initialize
- Defined in:
- lib/docusign_monitor/models/web_query.rb
#initialize(attributes = {}) ⇒ WebQuery
Initializes the object
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/docusign_monitor/models/web_query.rb', line 68 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'filters') if (value = attributes[:'filters']).is_a?(Array) self.filters = value end end if attributes.has_key?(:'aggregations') if (value = attributes[:'aggregations']).is_a?(Array) self.aggregations = value end end if attributes.has_key?(:'queryScope') self.query_scope = attributes[:'queryScope'] end if attributes.has_key?(:'queryScopeId') self.query_scope_id = attributes[:'queryScopeId'] end end |