Class: Twilio::REST::Messaging::V3::TypingIndicatorInstance

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ TypingIndicatorInstance

Initialize the TypingIndicatorInstance

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 TypingIndicator resource.

  • sid (String) —

    The SID of the Call resource to fetch.



155
156
157
158
159
160
161
162
163
# File 'lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb', line 155

def initialize(version, payload )
    super(version)
    
    
    # Marshaled Properties
    @properties = { 
        'success' => payload['success'],
    }
end

Instance Method Details

#inspect ⇒ Object

Provide a detailed, user friendly representation



180
181
182
# File 'lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb', line 180

def inspect
    "<Twilio.Messaging.V3.TypingIndicatorInstance>"
end

#success ⇒ Boolean

Returns Indicates if the typing indicator was sent successfully.

Returns:

  • (Boolean) —

    Indicates if the typing indicator was sent successfully.



168
169
170
# File 'lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb', line 168

def success
    @properties['success']
end

#to_s ⇒ Object

Provide a user friendly representation



174
175
176
# File 'lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb', line 174

def to_s
    "<Twilio.Messaging.V3.TypingIndicatorInstance>"
end