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.
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
#carriers ⇒ Object
181 182 183 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 181 def carriers @carriers end |
#country ⇒ Object
181 182 183 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 181 def country @country end |
#registration_sid ⇒ Object
181 182 183 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 181 def registration_sid @registration_sid end |
#status ⇒ Object
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( = {}) { "country": @country, "registration_sid": @registration_sid, "status": @status, "carriers": @carriers, }.to_json() end |