Class: Twilio::REST::Verify::V2::VerificationAttemptsSummaryContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Verify::V2::VerificationAttemptsSummaryContext
- Defined in:
- lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb
Instance Method Summary collapse
-
#fetch(verify_service_sid: :unset, date_created_after: :unset, date_created_before: :unset, country: :unset, channel: :unset, destination_prefix: :unset) ⇒ VerificationAttemptsSummaryInstance
Fetch the VerificationAttemptsSummaryInstance.
-
#initialize(version) ⇒ VerificationAttemptsSummaryContext
constructor
Initialize the VerificationAttemptsSummaryContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ VerificationAttemptsSummaryContext
Initialize the VerificationAttemptsSummaryContext
48 49 50 51 52 53 54 55 56 |
# File 'lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb', line 48 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/Attempts/Summary" end |
Instance Method Details
#fetch(verify_service_sid: :unset, date_created_after: :unset, date_created_before: :unset, country: :unset, channel: :unset, destination_prefix: :unset) ⇒ VerificationAttemptsSummaryInstance
Fetch the VerificationAttemptsSummaryInstance
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb', line 66 def fetch( verify_service_sid: :unset, date_created_after: :unset, date_created_before: :unset, country: :unset, channel: :unset, destination_prefix: :unset ) params = Twilio::Values.of({ 'VerifyServiceSid' => verify_service_sid, 'DateCreatedAfter' => Twilio.serialize_iso8601_datetime(date_created_after), 'DateCreatedBefore' => Twilio.serialize_iso8601_datetime(date_created_before), 'Country' => country, 'Channel' => channel, 'DestinationPrefix' => destination_prefix, }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.fetch('GET', @uri, params: params, headers: headers) VerificationAttemptsSummaryInstance.new( @version, payload, ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
106 107 108 109 |
# File 'lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb', line 106 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Verify.V2.VerificationAttemptsSummaryContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
99 100 101 102 |
# File 'lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb', line 99 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Verify.V2.VerificationAttemptsSummaryContext #{context}>" end |