Method: SysAid::Task.find_by_project_id

Defined in:
lib/sysaid/task.rb

.find_by_project_id(project_id) ⇒ Object



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/sysaid/task.rb', line 24

def self.find_by_project_id(project_id)
  SysAid.ensure_logged_in

  response = SysAid.call(:execute_select_query, message: sql_query(project_id))

  if response.to_hash[:execute_select_query_response][:return]
    return response.to_hash[:execute_select_query_response][:return]
  end

  return false
end