Class: Twilio::REST::Events::V1::SinkContext::SinkTestInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Events::V1::SinkContext::SinkTestInstance
- Defined in:
- lib/twilio-ruby/rest/events/v1/sink/sink_test.rb
Instance Method Summary collapse
-
#initialize(version, payload, sid: nil) ⇒ SinkTestInstance
constructor
Initialize the SinkTestInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#result ⇒ String
Feedback indicating whether the test event was generated.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, sid: nil) ⇒ SinkTestInstance
Initialize the SinkTestInstance
94 95 96 97 98 99 100 101 |
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_test.rb', line 94 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
118 119 120 |
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_test.rb', line 118 def inspect "<Twilio.Events.V1.SinkTestInstance>" end |
#result ⇒ String
Returns Feedback indicating whether the test event was generated.
106 107 108 |
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_test.rb', line 106 def result @properties['result'] end |
#to_s ⇒ Object
Provide a user friendly representation
112 113 114 |
# File 'lib/twilio-ruby/rest/events/v1/sink/sink_test.rb', line 112 def to_s "<Twilio.Events.V1.SinkTestInstance>" end |