Class: Twilio::REST::Conversations::V2::ConfigurationList::ConversationsV2CaptureRule

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ ConversationsV2CaptureRule

Returns a new instance of ConversationsV2CaptureRule.



27
28
29
30
31
# File 'lib/twilio-ruby/rest/conversations/v2/configuration.rb', line 27

def initialize(payload)
        @from = payload["from"]
        @to = payload["to"]
         = payload["metadata"]
end

Instance Attribute Details

#fromObject

Parameters:

  • [String] The from address. Use * for wildcard to match any from address.

  • [String] The to address. Use * for wildcard to match any to address.

  • [Hash<String, String>] Additional matching criteria for the capture rule. For voice calls, can include callType (PSTN, SIP, and similar).



26
27
28
# File 'lib/twilio-ruby/rest/conversations/v2/configuration.rb', line 26

def from
  @from
end

#metadataObject

Parameters:

  • [String] The from address. Use * for wildcard to match any from address.

  • [String] The to address. Use * for wildcard to match any to address.

  • [Hash<String, String>] Additional matching criteria for the capture rule. For voice calls, can include callType (PSTN, SIP, and similar).



26
27
28
# File 'lib/twilio-ruby/rest/conversations/v2/configuration.rb', line 26

def 
  
end

#toObject

Parameters:

  • [String] The from address. Use * for wildcard to match any from address.

  • [String] The to address. Use * for wildcard to match any to address.

  • [Hash<String, String>] Additional matching criteria for the capture rule. For voice calls, can include callType (PSTN, SIP, and similar).



26
27
28
# File 'lib/twilio-ruby/rest/conversations/v2/configuration.rb', line 26

def to
  @to
end

Instance Method Details

#to_json(options = {}) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/twilio-ruby/rest/conversations/v2/configuration.rb', line 32

def to_json(options = {})
{
        "from": @from,
        "to": @to,
        "metadata": ,
}.to_json(options)
end