Class: Twilio::REST::FlexApi::V1::InsightsUserRolesListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::FlexApi::V1::InsightsUserRolesListResponse
- 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
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ InsightsUserRolesListResponse
constructor
A new instance of InsightsUserRolesListResponse.
- #insights_user_roles ⇒ Object
- #insights_user_roles_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ InsightsUserRolesListResponse
Returns a new instance of InsightsUserRolesListResponse.
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
#headers ⇒ Object
250 251 252 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb', line 250 def headers @headers end |
#insights_user_roles ⇒ Object
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_instance ⇒ Object
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_code ⇒ Object
254 255 256 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb', line 254 def status_code @status_code end |