Class: Twilio::REST::Insights::V3::CustomFieldMappingList::IntelligenceOperatorSource
- Inherits:
-
Object
- Object
- Twilio::REST::Insights::V3::CustomFieldMappingList::IntelligenceOperatorSource
- 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) ⇒ IntelligenceOperatorSource
constructor
A new instance of IntelligenceOperatorSource.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ IntelligenceOperatorSource
Returns a new instance of IntelligenceOperatorSource.
78 79 80 81 82 |
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb', line 78 def initialize(payload) @operator_id = payload["operator_id"] @operator_name = payload["operator_name"] @field = payload["field"] end |
Instance Attribute Details
#field ⇒ Object
77 78 79 |
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb', line 77 def field @field end |
#operator_id ⇒ Object
77 78 79 |
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb', line 77 def operator_id @operator_id end |
#operator_name ⇒ Object
77 78 79 |
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb', line 77 def operator_name @operator_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
83 84 85 86 87 88 89 |
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb', line 83 def to_json( = {}) { "operatorId": @operator_id, "operatorName": @operator_name, "field": @field, }.to_json() end |