lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb in twilio-ruby-5.4.4 vs lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb in twilio-ruby-5.4.5

- old
+ new

@@ -52,11 +52,11 @@ # efficient page size, i.e. min(limit, 1000) # @return [Enumerable] Enumerable that will yield up to limit results def stream(limit: nil, page_size: nil) limits = @version.read_limits(limit, page_size) - page = self.page(page_size: limits[:page_size],) + page = self.page(page_size: limits[:page_size]) @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit]) end ## @@ -64,11 +64,11 @@ # This operation lazily loads records as efficiently as possible until the limit # is reached. def each limits = @version.read_limits - page = self.page(page_size: limits[:page_size],) + page = self.page(page_size: limits[:page_size]) @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit]).each {|x| yield x} end @@ -146,11 +146,11 @@ 'POST', @uri, data: data ) - DomainInstance.new(@version, payload, account_sid: @solution[:account_sid],) + DomainInstance.new(@version, payload, account_sid: @solution[:account_sid]) end ## # Provide a user friendly representation def to_s @@ -175,11 +175,11 @@ ## # Build an instance of DomainInstance # @param [Hash] payload Payload response from the API # @return [DomainInstance] DomainInstance def get_instance(payload) - DomainInstance.new(@version, payload, account_sid: @solution[:account_sid],) + DomainInstance.new(@version, payload, account_sid: @solution[:account_sid]) end ## # Provide a user friendly representation def to_s @@ -196,11 +196,11 @@ # @return [DomainContext] DomainContext def initialize(version, account_sid, sid) super(version) # Path Solution - @solution = {account_sid: account_sid, sid: sid,} + @solution = {account_sid: account_sid, sid: sid} @uri = "/Accounts/#{@solution[:account_sid]}/SIP/Domains/#{@solution[:sid]}.json" # Dependents @ip_access_control_list_mappings = nil @credential_list_mappings = nil @@ -216,11 +216,11 @@ 'GET', @uri, params, ) - DomainInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid],) + DomainInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid]) end ## # Update the DomainInstance # @param [String] auth_type The auth_type @@ -251,11 +251,11 @@ 'POST', @uri, data: data, ) - DomainInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid],) + DomainInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid]) end ## # Deletes the DomainInstance # @return [Boolean] true if delete succeeds, true otherwise @@ -269,11 +269,11 @@ # @return [IpAccessControlListMappingContext] if sid was passed. def ip_access_control_list_mappings(sid=:unset) raise ArgumentError, 'sid cannot be nil' if sid.nil? if sid != :unset - return IpAccessControlListMappingContext.new(@version, @solution[:account_sid], @solution[:sid], sid,) + return IpAccessControlListMappingContext.new(@version, @solution[:account_sid], @solution[:sid], sid) end unless @ip_access_control_list_mappings @ip_access_control_list_mappings = IpAccessControlListMappingList.new( @version, @@ -291,11 +291,11 @@ # @return [CredentialListMappingContext] if sid was passed. def credential_list_mappings(sid=:unset) raise ArgumentError, 'sid cannot be nil' if sid.nil? if sid != :unset - return CredentialListMappingContext.new(@version, @solution[:account_sid], @solution[:sid], sid,) + return CredentialListMappingContext.new(@version, @solution[:account_sid], @solution[:sid], sid) end unless @credential_list_mappings @credential_list_mappings = CredentialListMappingList.new( @version, @@ -348,19 +348,19 @@ 'sip_registration' => payload['sip_registration'], } # Context @instance_context = nil - @params = {'account_sid' => account_sid, 'sid' => sid || @properties['sid'],} + @params = {'account_sid' => account_sid, 'sid' => sid || @properties['sid']} end ## # Generate an instance context for the instance, the context is capable of # performing various actions. All instance actions are proxied to the context # @return [DomainContext] DomainContext for this DomainInstance def context unless @instance_context - @instance_context = DomainContext.new(@version, @params['account_sid'], @params['sid'],) + @instance_context = DomainContext.new(@version, @params['account_sid'], @params['sid']) end @instance_context end ## \ No newline at end of file