Method: PureCloud::PresenceQueryResponse#initialize
- Defined in:
- lib/purecloud/models/presence_query_response.rb
#initialize(attributes = {}) ⇒ PresenceQueryResponse
Returns a new instance of PresenceQueryResponse.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/purecloud/models/presence_query_response.rb', line 46 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'systemToOrganizationMappings'] if (value = attributes[:'systemToOrganizationMappings']).is_a?(Array) self.system_to_organization_mappings = value end end if attributes[:'results'] if (value = attributes[:'results']).is_a?(Array) self.results = value end end end |