Class: Twilio::REST::FlexApi::V1::InsightsUserRolesListResponse

Inherits:
InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb,
lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ InsightsUserRolesListResponse

Returns a new instance of InsightsUserRolesListResponse.

Parameters:



157
158
159
160
161
162
163
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb', line 157

def initialize(version, payload, key)
   @insights_user_roles_instance = payload.body[key].map do |data|
    InsightsUserRolesInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#headersObject



250
251
252
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb', line 250

def headers
  @headers
end

#insights_user_rolesObject



246
247
248
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb', line 246

def insights_user_roles
    @insights_user_roles
end

#insights_user_roles_instanceObject



165
166
167
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb', line 165

def insights_user_roles_instance
    @instance
end

#status_codeObject



254
255
256
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb', line 254

def status_code
  @status_code
end