lib/twilio-ruby/rest/verify/v2.rb in twilio-ruby-5.47.0 vs lib/twilio-ruby/rest/verify/v2.rb in twilio-ruby-5.48.0

- old
+ new

@@ -15,10 +15,11 @@ def initialize(domain) super @version = 'v2' @forms = nil @services = nil + @verification_attempts = nil end ## # @param [form.FormTypes] form_type The Type of this Form. Currently only # `form-push` is supported. @@ -44,9 +45,23 @@ raise ArgumentError, 'sid cannot be nil' elsif sid == :unset @services ||= ServiceList.new self else ServiceContext.new(self, sid) + end + end + + ## + # @param [String] sid The unique SID identifier of a Verification Attempt + # @return [Twilio::REST::Verify::V2::VerificationAttemptContext] if sid was passed. + # @return [Twilio::REST::Verify::V2::VerificationAttemptList] + def verification_attempts(sid=:unset) + if sid.nil? + raise ArgumentError, 'sid cannot be nil' + elsif sid == :unset + @verification_attempts ||= VerificationAttemptList.new self + else + VerificationAttemptContext.new(self, sid) end end ## # Provide a user friendly representation \ No newline at end of file