lib/twilio-ruby/rest/pricing/v1/voice.rb in twilio-ruby-5.4.4 vs lib/twilio-ruby/rest/pricing/v1/voice.rb in twilio-ruby-5.4.5
- old
+ new
@@ -31,14 +31,14 @@
# @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(@version, number,)
+ return NumberContext.new(@version, number)
end
- @numbers ||= NumberList.new(@version,)
+ @numbers ||= NumberList.new(@version)
end
##
# Access the countries
# @param [String] iso_country The iso_country
@@ -46,14 +46,14 @@
# @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(@version, iso_country,)
+ return CountryContext.new(@version, iso_country)
end
- @countries ||= CountryList.new(@version,)
+ @countries ||= CountryList.new(@version)
end
##
# Provide a user friendly representation
def to_s
@@ -78,11 +78,11 @@
##
# Build an instance of VoiceInstance
# @param [Hash] payload Payload response from the API
# @return [VoiceInstance] VoiceInstance
def get_instance(payload)
- VoiceInstance.new(@version, payload,)
+ VoiceInstance.new(@version, payload)
end
##
# Provide a user friendly representation
def to_s
@@ -98,10 +98,10 @@
# @return [VoiceInstance] VoiceInstance
def initialize(version, payload)
super(version)
# Marshaled Properties
- @properties = {'name' => payload['name'], 'url' => payload['url'], 'links' => payload['links'],}
+ @properties = {'name' => payload['name'], 'url' => payload['url'], 'links' => payload['links']}
end
##
# @return [String] The name
def name
\ No newline at end of file