Class: Twilio::REST::FlexApi::V1::InsightsUserRolesContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::FlexApi::V1::InsightsUserRolesContext
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.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
-
#fetch(authorization: :unset) ⇒ InsightsUserRolesInstance
Fetch the InsightsUserRolesInstance.
-
#initialize(version) ⇒ InsightsUserRolesContext
constructor
Initialize the InsightsUserRolesContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ InsightsUserRolesContext
Initialize the InsightsUserRolesContext
50 51 52 53 54 55 56 57 58 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb', line 50 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/Insights/UserRoles" end |
Instance Method Details
#fetch(authorization: :unset) ⇒ InsightsUserRolesInstance
Fetch the InsightsUserRolesInstance
63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb', line 63 def fetch( authorization: :unset ) headers = Twilio::Values.of({ 'Authorization' => , }) payload = @version.fetch('GET', @uri, headers: headers) InsightsUserRolesInstance.new( @version, payload, ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
86 87 88 89 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb', line 86 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.FlexApi.V1.InsightsUserRolesContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
79 80 81 82 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb', line 79 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.FlexApi.V1.InsightsUserRolesContext #{context}>" end |