Module: RockRMS::Client::PhoneNumber
- Included in:
- RockRMS::Client
- Defined in:
- lib/rock_rms/resources/phone_number.rb
Instance Method Summary collapse
- #create_phone_number(number_type_value_id:, number:, person_id:) ⇒ Object
- #list_phone_numbers(options = {}) ⇒ Object
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:) = { 'IsSystem' => true, 'IsMessagingEnabled' => false, 'NumberTypeValueId' => number_type_value_id, 'Number' => number, 'PersonId' => person_id } post(phone_number_path, ) end |
#list_phone_numbers(options = {}) ⇒ Object
4 5 6 |
# File 'lib/rock_rms/resources/phone_number.rb', line 4 def list_phone_numbers( = {}) Response::PhoneNumber.format(get(phone_number_path, )) end |