Class: Twilio::REST::Insights::V3::CustomFieldMappingList::EntityMetadataUpdate

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) ⇒ EntityMetadataUpdate

Returns a new instance of EntityMetadataUpdate.



61
62
63
64
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb', line 61

def initialize(payload)
        @source_type = payload["source_type"]
        @intelligence_operator = payload["intelligence_operator"]
end

Instance Attribute Details

#intelligence_operator ⇒ Object

Parameters:



60
61
62
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb', line 60

def intelligence_operator
  @intelligence_operator
end

#source_type ⇒ Object

Parameters:



60
61
62
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb', line 60

def source_type
  @source_type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



65
66
67
68
69
70
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb', line 65

def to_json(options = {})
{
        "sourceType": @source_type,
        "intelligenceOperator": @intelligence_operator,
}.to_json(options)
end