Class: Twilio::REST::Pricing::V2::VoiceList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Pricing::V2::VoiceList
- Defined in:
- lib/twilio-ruby/rest/pricing/v2/voice.rb,
lib/twilio-ruby/rest/pricing/v2/voice/country.rb
Defined Under Namespace
Classes: CountryContext, CountryInstance, CountryList, CountryPage
Instance Method Summary collapse
-
#countries(iso_country = :unset) ⇒ CountryList, CountryContext
Access the countries.
-
#initialize(version) ⇒ VoiceList
constructor
Initialize the VoiceList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ VoiceList
Initialize the VoiceList
18 19 20 21 22 23 24 25 26 |
# File 'lib/twilio-ruby/rest/pricing/v2/voice.rb', line 18 def initialize(version) super(version) # Path Solution @solution = {} # Components @countries = nil end |
Instance Method Details
#countries(iso_country = :unset) ⇒ CountryList, CountryContext
Access the countries
34 35 36 37 38 39 40 41 42 |
# File 'lib/twilio-ruby/rest/pricing/v2/voice.rb', line 34 def countries(iso_country=:unset) raise ArgumentError, 'iso_country cannot be nil' if iso_country.nil? if iso_country != :unset return CountryContext.new(@version, iso_country, ) end @countries ||= CountryList.new(@version, ) end |
#to_s ⇒ Object
Provide a user friendly representation
46 47 48 |
# File 'lib/twilio-ruby/rest/pricing/v2/voice.rb', line 46 def to_s '#<Twilio.Pricing.V2.VoiceList>' end |