Method: PureCloud::TimeOffRequestQueryBody#initialize

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

#initialize(attributes = {}) ⇒ TimeOffRequestQueryBody

Initializes the object

Parameters:

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

    Model attributes in the form of hash



58
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
88
89
90
91
92
93
94
95
96
# File 'lib/purecloudplatformclientv2/models/time_off_request_query_body.rb', line 58

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?(:'userIds')
    
    if (value = attributes[:'userIds']).is_a?(Array)
      self.user_ids = value
    end
    
    
  
  end

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

  
  if attributes.has_key?(:'dateRange')
    
    
    self.date_range = attributes[:'dateRange']
    
  
  end

  
end