Class: Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderProfile
- Inherits:
-
Object
- Object
- Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderProfile
- Defined in:
- lib/twilio-ruby/rest/messaging/v2/channels_sender.rb,
lib/twilio-ruby/rest/messaging/v2/channels_sender.rb
Instance Attribute Summary collapse
- #about ⇒ Object
- #accent_color ⇒ Object
- #address ⇒ Object
- #banner_url ⇒ Object
- #description ⇒ Object
- #emails ⇒ Object
- #logo_url ⇒ Object
- #name ⇒ Object
- #phone_numbers ⇒ Object
- #privacy_url ⇒ Object
- #terms_of_service_url ⇒ Object
- #vertical ⇒ Object
- #websites ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ MessagingV2ChannelsSenderProfile
constructor
A new instance of MessagingV2ChannelsSenderProfile.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ MessagingV2ChannelsSenderProfile
Returns a new instance of MessagingV2ChannelsSenderProfile.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 37 def initialize(payload) @name = payload["name"] @about = payload["about"] @address = payload["address"] @description = payload["description"] @logo_url = payload["logo_url"] @banner_url = payload["banner_url"] @privacy_url = payload["privacy_url"] @terms_of_service_url = payload["terms_of_service_url"] @accent_color = payload["accent_color"] @vertical = payload["vertical"] @websites = payload["websites"] @emails = payload["emails"] @phone_numbers = payload["phone_numbers"] end |
Instance Attribute Details
#about ⇒ Object
36 37 38 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36 def about @about end |
#accent_color ⇒ Object
36 37 38 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36 def accent_color @accent_color end |
#address ⇒ Object
36 37 38 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36 def address @address end |
#banner_url ⇒ Object
36 37 38 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36 def @banner_url end |
#description ⇒ Object
36 37 38 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36 def description @description end |
#emails ⇒ Object
36 37 38 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36 def emails @emails end |
#logo_url ⇒ Object
36 37 38 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36 def logo_url @logo_url end |
#name ⇒ Object
36 37 38 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36 def name @name end |
#phone_numbers ⇒ Object
36 37 38 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36 def phone_numbers @phone_numbers end |
#privacy_url ⇒ Object
36 37 38 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36 def privacy_url @privacy_url end |
#terms_of_service_url ⇒ Object
36 37 38 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36 def terms_of_service_url @terms_of_service_url end |
#vertical ⇒ Object
36 37 38 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36 def vertical @vertical end |
#websites ⇒ Object
36 37 38 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36 def websites @websites end |
Instance Method Details
#to_json(options = {}) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 52 def to_json( = {}) { "name": @name, "about": @about, "address": @address, "description": @description, "logo_url": @logo_url, "banner_url": @banner_url, "privacy_url": @privacy_url, "terms_of_service_url": @terms_of_service_url, "accent_color": @accent_color, "vertical": @vertical, "websites": @websites, "emails": @emails, "phone_numbers": @phone_numbers, }.to_json() end |