Class: Twilio::REST::Conversations::V2::ConversationList::UpdateConversationByIdRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/conversations/v2/conversation.rb,
lib/twilio-ruby/rest/conversations/v2/conversation.rb,
lib/twilio-ruby/rest/conversations/v2/conversation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ UpdateConversationByIdRequest

Returns a new instance of UpdateConversationByIdRequest.



277
278
279
280
281
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 277

def initialize(payload)
        @name = payload["name"]
        @status = payload["status"]
        @metadata = payload["metadata"]
end

Instance Attribute Details

#metadata ⇒ Object

Parameters:

  • : (name) —

    [String] The name of the Conversation.

  • : (status) —

    [String] Lifecycle status of a Conversation.

  • : (metadata) —

    [Hash<String, String>] Customer-managed key-value metadata for this Conversation. Maximum 8 entries; keys up to 128 characters allowing alphanumeric characters, periods, underscores, and dashes; values up to 512 characters.



276
277
278
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 276

def 
  @metadata
end

#name ⇒ Object

Parameters:

  • : (name) —

    [String] The name of the Conversation.

  • : (status) —

    [String] Lifecycle status of a Conversation.

  • : (metadata) —

    [Hash<String, String>] Customer-managed key-value metadata for this Conversation. Maximum 8 entries; keys up to 128 characters allowing alphanumeric characters, periods, underscores, and dashes; values up to 512 characters.



276
277
278
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 276

def name
  @name
end

#status ⇒ Object

Parameters:

  • : (name) —

    [String] The name of the Conversation.

  • : (status) —

    [String] Lifecycle status of a Conversation.

  • : (metadata) —

    [Hash<String, String>] Customer-managed key-value metadata for this Conversation. Maximum 8 entries; keys up to 128 characters allowing alphanumeric characters, periods, underscores, and dashes; values up to 512 characters.



276
277
278
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 276

def status
  @status
end

Instance Method Details

#to_json(options = {}) ⇒ Object



282
283
284
285
286
287
288
# File 'lib/twilio-ruby/rest/conversations/v2/conversation.rb', line 282

def to_json(options = {})
{
        "name": @name,
        "status": @status,
        "metadata": @metadata,
}.to_json(options)
end