Class: Twilio::REST::FlexApi::V1::InsightsUserRolesInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, insights_user_roles_instance, headers, status_code) ⇒ InsightsUserRolesInstanceMetadata

Initializes a new InsightsUserRolesInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}InsightsUserRolesInstance]

    insights_user_roles_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



131
132
133
134
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb', line 131

def initialize(version, insights_user_roles_instance, headers, status_code)
    super(version, headers, status_code)
    @insights_user_roles_instance = insights_user_roles_instance
end

Instance Method Details

#headersObject



140
141
142
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb', line 140

def headers
    @headers
end

#insights_user_rolesObject



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

def insights_user_roles
    @insights_user_roles_instance
end

#status_codeObject



144
145
146
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb', line 144

def status_code
    @status_code
end

#to_sObject



148
149
150
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb', line 148

def to_s
  "<Twilio.Api.V2010.InsightsUserRolesInstanceMetadata status=#{@status_code}>"
end