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

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

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

  • account_sid (String)

    The SID of the Account that created this SinkValidate resource.

  • sid (String) (defaults to: nil)

    The SID of the Call resource to fetch.



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

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



125
126
127
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb', line 125

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.



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

def result
    @properties['result']
end

#to_sObject

Provide a user friendly representation



119
120
121
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb', line 119

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