Module: RockRMS::Client::SystemEmail

Included in:
RockRMS::Client
Defined in:
lib/rock_rms/resources/system_email.rb

Instance Method Summary collapse

Instance Method Details

#list_system_emails(options = {}) ⇒ Object



4
5
6
7
# File 'lib/rock_rms/resources/system_email.rb', line 4

def list_system_emails(options = {})
  res = get('SystemEmails', options)
  Response::SystemEmail.format(res)
end

#update_system_email(id, body:) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/rock_rms/resources/system_email.rb', line 9

def update_system_email(id, body:)
  options = {
    'Body' => body
  }

  patch("SystemEmails/#{id}", options)
end