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

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

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

  • account_sid (String) —

    The SID of the Account that created this SinkTest resource.

  • sid (String) (defaults to: nil) —

    The SID of the Call resource to fetch.



129
130
131
132
133
134
135
136
137
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_test.rb', line 129

def initialize(version, payload , sid: nil)
    super(version)
    
    
    # Marshaled Properties
    @properties = { 
        'result' => payload['result'],
    }
end

Instance Method Details

#inspect ⇒ Object

Provide a detailed, user friendly representation



154
155
156
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_test.rb', line 154

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

#result ⇒ String

Returns Feedback indicating whether the test event was generated.

Returns:

  • (String) —

    Feedback indicating whether the test event was generated.



142
143
144
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_test.rb', line 142

def result
    @properties['result']
end

#to_s ⇒ Object

Provide a user friendly representation



148
149
150
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_test.rb', line 148

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