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



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

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



128
129
130
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb', line 128

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

#resultString



116
117
118
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb', line 116

def result
    @properties['result']
end

#to_sObject

Provide a user friendly representation



122
123
124
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb', line 122

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