lib/twilio-ruby/rest/pricing/v1/phone_number.rb in twilio-ruby-5.4.2 vs lib/twilio-ruby/rest/pricing/v1/phone_number.rb in twilio-ruby-5.4.3

- old
+ new

@@ -30,19 +30,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 @@ -67,14 +62,11 @@ ## # Build an instance of PhoneNumberInstance # @param [Hash] payload Payload response from the API # @return [PhoneNumberInstance] PhoneNumberInstance def get_instance(payload) - PhoneNumberInstance.new( - @version, - payload, - ) + PhoneNumberInstance.new(@version, payload,) end ## # Provide a user friendly representation def to_s @@ -90,14 +82,10 @@ # @return [PhoneNumberInstance] PhoneNumberInstance 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