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



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

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



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

def 
    @properties['account_sid']
end

#commentsHash



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

def comments
    @properties['comments']
end

#inspectObject

Provide a detailed, user friendly representation



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

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

#to_sObject

Provide a user friendly representation



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

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

#urlString



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

def url
    @properties['url']
end