Class: Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2RcsComplianceCountryResponse

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) ⇒ MessagingV2RcsComplianceCountryResponse

Returns a new instance of MessagingV2RcsComplianceCountryResponse.



182
183
184
185
186
187
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 182

def initialize(payload)
        @country = payload["country"]
        @registration_sid = payload["registration_sid"]
        @status = payload["status"]
        @carriers = payload["carriers"]
end

Instance Attribute Details

#carriersObject

Parameters:

  • : (country)
    String

    The ISO 3166-1 alpha-2 country code.

  • : (registration_sid)
    String

    The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the ‘countries` array.

  • : (status)
    MessagingV2RcsCountryStatus
  • : (carriers)
    Array<MessagingV2RcsCarrier>


181
182
183
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 181

def carriers
  @carriers
end

#countryObject

Parameters:

  • : (country)
    String

    The ISO 3166-1 alpha-2 country code.

  • : (registration_sid)
    String

    The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the ‘countries` array.

  • : (status)
    MessagingV2RcsCountryStatus
  • : (carriers)
    Array<MessagingV2RcsCarrier>


181
182
183
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 181

def country
  @country
end

#registration_sidObject

Parameters:

  • : (country)
    String

    The ISO 3166-1 alpha-2 country code.

  • : (registration_sid)
    String

    The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the ‘countries` array.

  • : (status)
    MessagingV2RcsCountryStatus
  • : (carriers)
    Array<MessagingV2RcsCarrier>


181
182
183
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 181

def registration_sid
  @registration_sid
end

#statusObject

Parameters:

  • : (country)
    String

    The ISO 3166-1 alpha-2 country code.

  • : (registration_sid)
    String

    The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the ‘countries` array.

  • : (status)
    MessagingV2RcsCountryStatus
  • : (carriers)
    Array<MessagingV2RcsCarrier>


181
182
183
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 181

def status
  @status
end

Instance Method Details

#to_json(options = {}) ⇒ Object



188
189
190
191
192
193
194
195
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 188

def to_json(options = {})
{
        "country": @country,
        "registration_sid": @registration_sid,
        "status": @status,
        "carriers": @carriers,
}.to_json(options)
end