Class: Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2RcsComplianceCountryResponse
- Inherits:
-
Object
- Object
- Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2RcsComplianceCountryResponse
- 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
-
#initialize(payload) ⇒ MessagingV2RcsComplianceCountryResponse
constructor
A new instance of MessagingV2RcsComplianceCountryResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ MessagingV2RcsComplianceCountryResponse
Returns a new instance of MessagingV2RcsComplianceCountryResponse.
185 186 187 188 189 190 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 185 def initialize(payload) @country = payload["country"] @registration_sid = payload["registration_sid"] @status = payload["status"] @carriers = payload["carriers"] end |
Instance Attribute Details
#carriers ⇒ Object
184 185 186 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 184 def carriers @carriers end |
#country ⇒ Object
184 185 186 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 184 def country @country end |
#registration_sid ⇒ Object
184 185 186 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 184 def registration_sid @registration_sid end |
#status ⇒ Object
184 185 186 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 184 def status @status end |
Instance Method Details
#to_json(options = {}) ⇒ Object
191 192 193 194 195 196 197 198 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 191 def to_json( = {}) { "country": @country, "registration_sid": @registration_sid, "status": @status, "carriers": @carriers, }.to_json() end |