Method: PureCloud::GroupSearchRequest#initialize

Defined in:
lib/purecloudplatformclientv2/models/group_search_request.rb

#initialize(attributes = {}) ⇒ GroupSearchRequest

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'lib/purecloudplatformclientv2/models/group_search_request.rb', line 59

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?(:'sortOrder')
    self.sort_order = attributes[:'sortOrder']
  end

  if attributes.has_key?(:'sortBy')
    self.sort_by = attributes[:'sortBy']
  end

  if attributes.has_key?(:'pageSize')
    self.page_size = attributes[:'pageSize']
  end

  if attributes.has_key?(:'pageNumber')
    self.page_number = attributes[:'pageNumber']
  end

  if attributes.has_key?(:'query')
    if (value = attributes[:'query']).is_a?(Array)
      self.query = value
    end
  end

end