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.



143
144
145
146
147
148
149
150
151
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb', line 143

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



168
169
170
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb', line 168

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

#result ⇒ String

Returns Feedback indicating whether the given Sink was validated.

Returns:

  • (String) —

    Feedback indicating whether the given Sink was validated.



156
157
158
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb', line 156

def result
    @properties['result']
end

#to_s ⇒ Object

Provide a user friendly representation



162
163
164
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb', line 162

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