lib/twilio-ruby/rest/pricing/v1/voice.rb in twilio-ruby-5.0.0.rc26 vs lib/twilio-ruby/rest/pricing/v1/voice.rb in twilio-ruby-5.0.0
- old
+ new
@@ -25,12 +25,12 @@
end
##
# Access the numbers
# @param [String] number The number
- # @return [NumberList] if a(n) NumberList object was created.
- # @return [NumberContext] if a(n) NumberContext object was created.
+ # @return [NumberList]
+ # @return [NumberContext] if number was passed.
def numbers(number=:unset)
raise ArgumentError, 'number cannot be nil' if number.nil?
if number != :unset
return NumberContext.new(
@@ -45,12 +45,12 @@
end
##
# Access the countries
# @param [String] iso_country The iso_country
- # @return [CountryList] if a(n) CountryList object was created.
- # @return [CountryContext] if a(n) CountryContext object was created.
+ # @return [CountryList]
+ # @return [CountryContext] if iso_country was passed.
def countries(iso_country=:unset)
raise ArgumentError, 'iso_country cannot be nil' if iso_country.nil?
if iso_country != :unset
return CountryContext.new(
@@ -118,17 +118,23 @@
'url' => payload['url'],
'links' => payload['links'],
}
end
+ ##
+ # @return [String] The name
def name
@properties['name']
end
+ ##
+ # @return [String] The url
def url
@properties['url']
end
+ ##
+ # @return [String] The links
def links
@properties['links']
end
##
\ No newline at end of file