Class: Twilio::REST::Chat::V2::ServiceContext::ChannelContext::MemberInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/chat/v2/service/channel/member.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, member_instance, headers, status_code) ⇒ MemberInstanceMetadata

Initializes a new MemberInstanceMetadata.

Parameters:

  • Version that contains the resource

  • member_instance The instance associated with the metadata.

  • Header object with response headers.

  • The HTTP status code of the response.



490
491
492
493
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/member.rb', line 490

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

Instance Method Details

#headersObject



499
500
501
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/member.rb', line 499

def headers
    @headers
end

#memberObject



495
496
497
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/member.rb', line 495

def member
    @member_instance
end

#status_codeObject



503
504
505
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/member.rb', line 503

def status_code
    @status_code
end

#to_sObject



507
508
509
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/member.rb', line 507

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