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

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb

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

  • account_sid (String)

    The SID of the Account that created this InsightsSettingsComment resource.

  • sid (String)

    The SID of the Call resource to fetch.



95
96
97
98
99
100
101
102
103
104
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 95

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](www.twilio.com/docs/iam/api/account) that created the Flex Insights resource and owns this resource.

Returns:



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

def 
    @properties['account_sid']
end

#commentsHash

Returns:

  • (Hash)


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

def comments
    @properties['comments']
end

#inspectObject

Provide a detailed, user friendly representation



133
134
135
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 133

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

#to_sObject

Provide a user friendly representation



127
128
129
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 127

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

#urlString

Returns:

  • (String)


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

def url
    @properties['url']
end