Class: Twilio::REST::FlexApi::V1::InsightsSessionContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::FlexApi::V1::InsightsSessionContext
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/insights_session.rb
Overview
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 [email protected].
Instance Method Summary collapse
-
#create(authorization: :unset) ⇒ InsightsSessionInstance
Create the InsightsSessionInstance.
-
#initialize(version) ⇒ InsightsSessionContext
constructor
Initialize the InsightsSessionContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ InsightsSessionContext
Initialize the InsightsSessionContext
72 73 74 75 76 77 78 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_session.rb', line 72 def initialize(version) super(version) # Path Solution @solution = {} @uri = "/Insights/Session" end |
Instance Method Details
#create(authorization: :unset) ⇒ InsightsSessionInstance
Create the InsightsSessionInstance
84 85 86 87 88 89 90 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_session.rb', line 84 def create(authorization: :unset) headers = Twilio::Values.of({'Authorization' => , }) payload = @version.create('POST', @uri, headers: headers) InsightsSessionInstance.new(@version, payload, ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
101 102 103 104 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_session.rb', line 101 def inspect context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.FlexApi.V1.InsightsSessionContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
94 95 96 97 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_session.rb', line 94 def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.FlexApi.V1.InsightsSessionContext #{context}>" end |