Class: Twilio::REST::FlexApi::V1::InsightsSettingsCommentInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.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

Constructor Details

#initialize(version, payload) ⇒ InsightsSettingsCommentInstance

Initialize the InsightsSettingsCommentInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio



86
87
88
89
90
91
92
93
94
95
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 86

def initialize(version, payload)
  super(version)

  # Marshaled Properties
  @properties = {
      'account_sid' => payload['account_sid'],
      'comments' => payload['comments'],
      'url' => payload['url'],
  }
end

Instance Method Details

#account_sidString

Returns The SID of the Account that created the resource and owns this Flex Insights.

Returns:

  • (String)

    The SID of the Account that created the resource and owns this Flex Insights



99
100
101
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 99

def 
  @properties['account_sid']
end

#commentsHash

Returns The comments.

Returns:

  • (Hash)

    The comments



105
106
107
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 105

def comments
  @properties['comments']
end

#inspectObject

Provide a detailed, user friendly representation



123
124
125
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 123

def inspect
  "<Twilio.FlexApi.V1.InsightsSettingsCommentInstance>"
end

#to_sObject

Provide a user friendly representation



117
118
119
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 117

def to_s
  "<Twilio.FlexApi.V1.InsightsSettingsCommentInstance>"
end

#urlString

Returns The url.

Returns:

  • (String)

    The url



111
112
113
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 111

def url
  @properties['url']
end