class Twilio::REST::Events::V1::SinkContext::SinkTestInstance

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

Public Class Methods

new(version, payload, sid: nil) click to toggle source

Initialize the SinkTestInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] sid A 34 character string that uniquely identifies this Sink. @return [SinkTestInstance] SinkTestInstance

Calls superclass method Twilio::REST::InstanceResource::new
   # File lib/twilio-ruby/rest/events/v1/sink/sink_test.rb
86 def initialize(version, payload, sid: nil)
87   super(version)
88 
89   # Marshaled Properties
90   @properties = {'result' => payload['result'], }
91 end

Public Instance Methods

inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/events/v1/sink/sink_test.rb
107 def inspect
108   "<Twilio.Events.V1.SinkTestInstance>"
109 end
result() click to toggle source

@return [String] Feedback indicating whether the test event was generated.

   # File lib/twilio-ruby/rest/events/v1/sink/sink_test.rb
95 def result
96   @properties['result']
97 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/events/v1/sink/sink_test.rb
101 def to_s
102   "<Twilio.Events.V1.SinkTestInstance>"
103 end