lib/twilio-ruby/rest/verify/v2/service/entity.rb in twilio-ruby-5.50.0 vs lib/twilio-ruby/rest/verify/v2/service/entity.rb in twilio-ruby-5.51.0

- old
+ new

@@ -177,10 +177,11 @@ @solution = {service_sid: service_sid, identity: identity, } @uri = "/Services/#{@solution[:service_sid]}/Entities/#{@solution[:identity]}" # Dependents @factors = nil + @new_factors = nil @challenges = nil end ## # Delete the EntityInstance @@ -224,10 +225,26 @@ @factors end ## + # Access the new_factors + # @return [NewFactorList] + # @return [NewFactorContext] + def new_factors + unless @new_factors + @new_factors = NewFactorList.new( + @version, + service_sid: @solution[:service_sid], + identity: @solution[:identity], + ) + end + + @new_factors + end + + ## # Access the challenges # @return [ChallengeList] # @return [ChallengeContext] if sid was passed. def challenges(sid=:unset) raise ArgumentError, 'sid cannot be nil' if sid.nil? @@ -369,9 +386,16 @@ ## # Access the factors # @return [factors] factors def factors context.factors + end + + ## + # Access the new_factors + # @return [new_factors] new_factors + def new_factors + context.new_factors end ## # Access the challenges # @return [challenges] challenges \ No newline at end of file