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.



214
215
216
217
218
219
220
221
222
# File 'lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb', line 214

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

Instance Method Details

#inspectObject

Provide a detailed, user friendly representation



239
240
241
# File 'lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb', line 239

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

#successBoolean

Returns Indicates if the typing indicator was sent successfully.

Returns:

  • (Boolean)

    Indicates if the typing indicator was sent successfully.



227
228
229
# File 'lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb', line 227

def success
    @properties['success']
end

#to_sObject

Provide a user friendly representation



233
234
235
# File 'lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb', line 233

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