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



190
191
192
193
194
195
196
197
198
199
200
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 190

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



205
206
207
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 205

def 
    @properties['account_sid']
end

#commentsHash



211
212
213
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 211

def comments
    @properties['comments']
end

#inspectObject

Provide a detailed, user friendly representation



229
230
231
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 229

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

#to_sObject

Provide a user friendly representation



223
224
225
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 223

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

#urlString



217
218
219
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb', line 217

def url
    @properties['url']
end