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.



164
165
166
167
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 164

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


163
164
165
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 163

def name
  @name
end

#statusObject

Parameters:

  • : (name)
    String

    The name of the carrier. For example, ‘Verizon` or `AT&T` for US.

  • : (status)
    MessagingV2RcsCarrierStatus


163
164
165
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 163

def status
  @status
end

Instance Method Details

#to_json(options = {}) ⇒ Object



168
169
170
171
172
173
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 168

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