Class: Twilio::REST::Voice

Inherits:
VoiceBase show all
Defined in:
lib/twilio-ruby/rest/voice.rb,
lib/twilio-ruby/rest/voice/v1.rb,
lib/twilio-ruby/rest/voice/v1/ip_record.rb,
lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb,
lib/twilio-ruby/rest/voice/v1/archived_call.rb,
lib/twilio-ruby/rest/voice/v1/connection_policy.rb,
lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb,
lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb,
lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb,
lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb,
lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb,
lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb,
lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb

Defined Under Namespace

Classes: V1

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from VoiceBase

#initialize, #to_s, #v1

Methods inherited from Domain

#absolute_url, #initialize, #request

Constructor Details

This class inherits a constructor from Twilio::REST::VoiceBase

Instance Method Details

#archived_calls(date = :unset, sid = :unset) ⇒ Twilio::REST::Voice::V1::ArchivedCallInstance, Twilio::REST::Voice::V1::ArchivedCallList

Parameters:

  • sid (String) (defaults to: :unset)

    The call sid

Returns:



8
9
10
11
# File 'lib/twilio-ruby/rest/voice.rb', line 8

def archived_calls(date=:unset, sid=:unset)
  warn "archived_calls is deprecated. Use v1.archived_calls instead."
  self.v1.archived_calls(date, sid)
end

#byoc_trunks(sid = :unset) ⇒ Twilio::REST::Voice::V1::ByocTrunkInstance, Twilio::REST::Voice::V1::ByocTrunkList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that that we created to identify the BYOC Trunk resource.

Returns:



18
19
20
21
# File 'lib/twilio-ruby/rest/voice.rb', line 18

def byoc_trunks(sid=:unset)
  warn "byoc_trunks is deprecated. Use v1.byoc_trunks instead."
  self.v1.byoc_trunks(sid)
end

#connection_policies(sid = :unset) ⇒ Twilio::REST::Voice::V1::ConnectionPolicyInstance, Twilio::REST::Voice::V1::ConnectionPolicyList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the Connection Policy resource.

Returns:



28
29
30
31
# File 'lib/twilio-ruby/rest/voice.rb', line 28

def connection_policies(sid=:unset)
  warn "connection_policies is deprecated. Use v1.connection_policies instead."
  self.v1.connection_policies(sid)
end

#dialing_permissionsTwilio::REST::Voice::V1::DialingPermissionsInstance



35
36
37
38
# File 'lib/twilio-ruby/rest/voice.rb', line 35

def dialing_permissions
  warn "dialing_permissions is deprecated. Use v1.dialing_permissions instead."
  self.v1.dialing_permissions()
end

#ip_records(sid = :unset) ⇒ Twilio::REST::Voice::V1::IpRecordInstance, Twilio::REST::Voice::V1::IpRecordList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the IP Record resource.

Returns:



45
46
47
48
# File 'lib/twilio-ruby/rest/voice.rb', line 45

def ip_records(sid=:unset)
  warn "ip_records is deprecated. Use v1.ip_records instead."
  self.v1.ip_records(sid)
end

#source_ip_mappings(sid = :unset) ⇒ Twilio::REST::Voice::V1::SourceIpMappingInstance, Twilio::REST::Voice::V1::SourceIpMappingList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the IP Record resource.

Returns:



55
56
57
58
# File 'lib/twilio-ruby/rest/voice.rb', line 55

def source_ip_mappings(sid=:unset)
  warn "source_ip_mappings is deprecated. Use v1.source_ip_mappings instead."
  self.v1.source_ip_mappings(sid)
end