Class: Twilio::REST::Insights::V3::CustomFieldMappingList::IntelligenceOperatorSourceUpdate

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb,
lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ IntelligenceOperatorSourceUpdate

Returns a new instance of IntelligenceOperatorSourceUpdate.



95
96
97
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb', line 95

def initialize(payload)
        @field = payload["field"]
end

Instance Attribute Details

#field ⇒ Object

Parameters:

  • : (field) —

    [String] New path to the property in the operator's output schema. Follows the same rules as field at registration: one or two .-separated segments of letters, digits and _, resolving to a number or integer property on the operator's latest active version.



94
95
96
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb', line 94

def field
  @field
end

Instance Method Details

#to_json(options = {}) ⇒ Object



98
99
100
101
102
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb', line 98

def to_json(options = {})
{
        "field": @field,
}.to_json(options)
end