Class: Twilio::REST::Insights::V3::CustomFieldMappingList::IntelligenceOperatorSourceUpdate
- Inherits:
-
Object
- Object
- Twilio::REST::Insights::V3::CustomFieldMappingList::IntelligenceOperatorSourceUpdate
- 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
-
#initialize(payload) ⇒ IntelligenceOperatorSourceUpdate
constructor
A new instance of IntelligenceOperatorSourceUpdate.
- #to_json(options = {}) ⇒ Object
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
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( = {}) { "field": @field, }.to_json() end |