Class: Twilio::REST::Events::V1::SinkContext::SinkTestInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/events/v1/sink/sink_test.rb

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, sid: nil) ⇒ SinkTestInstance

Initialize the SinkTestInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • sid (String) (defaults to: nil)

    A 34 character string that uniquely identifies this Sink.


86
87
88
89
90
91
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_test.rb', line 86

def initialize(version, payload, sid: nil)
  super(version)

  # Marshaled Properties
  @properties = {'result' => payload['result'], }
end

Instance Method Details

#inspectObject

Provide a detailed, user friendly representation


107
108
109
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_test.rb', line 107

def inspect
  "<Twilio.Events.V1.SinkTestInstance>"
end

#resultString

Returns Feedback indicating whether the test event was generated.

Returns:

  • (String)

    Feedback indicating whether the test event was generated.


95
96
97
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_test.rb', line 95

def result
  @properties['result']
end

#to_sObject

Provide a user friendly representation


101
102
103
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_test.rb', line 101

def to_s
  "<Twilio.Events.V1.SinkTestInstance>"
end