## # This code was generated by # \ / _ _ _| _ _ # | (_)\/(_)(_|\/| |(/_ v1.0.0 # / / # # frozen_string_literal: true module Twilio module REST class Preview < Domain class TrustedComms < Version class BusinessContext < InstanceContext ## # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com. class InsightsList < ListResource ## # Initialize the InsightsList # @param [Version] version Version that contains the resource # @param [String] business_sid A 34 character string that uniquely identifies this # Business. # @return [InsightsList] InsightsList def initialize(version, business_sid: nil) super(version) # Path Solution @solution = {business_sid: business_sid} # Components @impressions_rate = nil end ## # Access the impressions_rate # @return [ImpressionsRateList] # @return [ImpressionsRateContext] def impressions_rate return ImpressionsRateContext.new(@version, @solution[:business_sid], ) @impressions_rate ||= ImpressionsRateList.new(@version, business_sid: @solution[:business_sid], ) end ## # Provide a user friendly representation def to_s '#' end end ## # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com. class InsightsPage < Page ## # Initialize the InsightsPage # @param [Version] version Version that contains the resource # @param [Response] response Response from the API # @param [Hash] solution Path solution for the resource # @return [InsightsPage] InsightsPage def initialize(version, response, solution) super(version, response) # Path Solution @solution = solution end ## # Build an instance of InsightsInstance # @param [Hash] payload Payload response from the API # @return [InsightsInstance] InsightsInstance def get_instance(payload) InsightsInstance.new(@version, payload, business_sid: @solution[:business_sid], ) end ## # Provide a user friendly representation def to_s '' end end ## # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com. class InsightsInstance < InstanceResource ## # Initialize the InsightsInstance # @param [Version] version Version that contains the resource # @param [Hash] payload payload that contains response from Twilio # @param [String] business_sid A 34 character string that uniquely identifies this # Business. # @return [InsightsInstance] InsightsInstance def initialize(version, payload, business_sid: nil) super(version) end ## # Provide a user friendly representation def to_s "" end ## # Provide a detailed, user friendly representation def inspect "" end end end end end end end