Class: Twilio::REST::Events::V1::SinkContext::SinkValidateInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/events/v1/sink/sink_validate.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) ⇒ SinkValidateInstance

Initialize the SinkValidateInstance

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.


90
91
92
93
94
95
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb', line 90

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


111
112
113
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb', line 111

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

#resultString

Returns Feedback indicating whether the given Sink was validated.

Returns:

  • (String)

    Feedback indicating whether the given Sink was validated.


99
100
101
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb', line 99

def result
  @properties['result']
end

#to_sObject

Provide a user friendly representation


105
106
107
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb', line 105

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