Class: Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2RcsCarrier

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/messaging/v2/channels_sender.rb,
lib/twilio-ruby/rest/messaging/v2/channels_sender.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ MessagingV2RcsCarrier

Returns a new instance of MessagingV2RcsCarrier.



173
174
175
176
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 173

def initialize(payload)
        @name = payload["name"]
        @status = payload["status"]
end

Instance Attribute Details

#nameObject

Parameters:

  • : (name)

    [String] The name of the carrier. For example, Verizon or AT&T for US.

  • : (status)

    [MessagingV2RcsCarrierStatus]



172
173
174
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 172

def name
  @name
end

#statusObject

Parameters:

  • : (name)

    [String] The name of the carrier. For example, Verizon or AT&T for US.

  • : (status)

    [MessagingV2RcsCarrierStatus]



172
173
174
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 172

def status
  @status
end

Instance Method Details

#to_json(options = {}) ⇒ Object



177
178
179
180
181
182
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 177

def to_json(options = {})
{
        "name": @name,
        "status": @status,
}.to_json(options)
end