Class: Twilio::REST::Insights::V3::CustomFieldMappingsCapacityList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Insights::V3::CustomFieldMappingsCapacityList
- Defined in:
- lib/twilio-ruby/rest/insights/v3/custom_field_mappings_capacity.rb
Instance Method Summary collapse
-
#fetch ⇒ CustomFieldMappingsCapacityInstance
Fetch the CustomFieldMappingsCapacityInstance.
-
#fetch_with_metadata ⇒ CustomFieldMappingsCapacityInstance
Fetch the CustomFieldMappingsCapacityInstanceMetadata.
-
#initialize(version) ⇒ CustomFieldMappingsCapacityList
constructor
Initialize the CustomFieldMappingsCapacityList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ CustomFieldMappingsCapacityList
Initialize the CustomFieldMappingsCapacityList
26 27 28 29 30 31 32 33 34 |
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mappings_capacity.rb', line 26 def initialize(version) apiV1Version = ApiV1Version.new version.domain, version super(apiV1Version) # Path Solution @solution = { } @uri = "/ControlPlane/ConversationInsights/CustomFieldMappingsCapacity" end |
Instance Method Details
#fetch ⇒ CustomFieldMappingsCapacityInstance
Fetch the CustomFieldMappingsCapacityInstance
38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mappings_capacity.rb', line 38 def fetch headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.fetch('GET', @uri, headers: headers) CustomFieldMappingsCapacityInstance.new( @version, payload, ) end |
#fetch_with_metadata ⇒ CustomFieldMappingsCapacityInstance
Fetch the CustomFieldMappingsCapacityInstanceMetadata
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mappings_capacity.rb', line 56 def headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) response = @version.('GET', @uri, headers: headers) custom_field_mappings_capacity_instance = CustomFieldMappingsCapacityInstance.new( @version, response.body, ) CustomFieldMappingsCapacityInstanceMetadata.new( @version, custom_field_mappings_capacity_instance, response.headers, response.status_code ) end |
#to_s ⇒ Object
Provide a user friendly representation
81 82 83 |
# File 'lib/twilio-ruby/rest/insights/v3/custom_field_mappings_capacity.rb', line 81 def to_s '#<Twilio.Insights.V3.CustomFieldMappingsCapacityList>' end |