Sha256: 19d720f3d94dc27d4abbb0304b2c670c623b2832c9630e6152bffe9c7c4d7cd9
Contents?: true
Size: 836 Bytes
Versions: 2
Compression:
Stored size: 836 Bytes
Contents
module Restcomm module REST class OutgoingCallerIds < ListResource def add(phone_number) create phone_number: phone_number end alias :verify :add ## # Override ListResource#create to instantiate the proper instance class. # This doesn't actually matter since all properties are lazily loaded into # whatever object is instantiated. But it might matter in the future. def create(params={}) # :nodoc: old_instance_class = @instance_class @instance_class = Restcomm::REST::PhoneNumberVerificationRequest verification_request = super @instance_class = old_instance_class verification_request end end class OutgoingCallerId < InstanceResource; end class PhoneNumberVerificationRequest < InstanceResource; end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restcomm-ruby-1.2.1 | lib/restcomm-ruby/rest/outgoing_caller_ids.rb |
restcomm-ruby-1.2.0 | lib/restcomm-ruby/rest/outgoing_caller_ids.rb |