Module: RockRMS::Client::PhoneNumber

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

Instance Method Summary collapse

Instance Method Details

#create_phone_number(number_type_value_id:, number:, person_id:) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/rock_rms/resources/phone_number.rb', line 8

def create_phone_number(number_type_value_id:, number:, person_id:)
  options = {
    'IsSystem' => true,
    'IsMessagingEnabled' => false,
    'NumberTypeValueId' => number_type_value_id,
    'Number' => number,
    'PersonId' => person_id
  }

  post(phone_number_path, options)
end

#list_phone_numbers(options = {}) ⇒ Object



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

def list_phone_numbers(options = {})
  Response::PhoneNumber.format(get(phone_number_path, options))
end