Class: Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderProfile

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

#aboutObject



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def about
  @about
end

#accent_colorObject



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def accent_color
  @accent_color
end

#addressObject



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def address
  @address
end


36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def banner_url
  @banner_url
end

#descriptionObject



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def description
  @description
end

#emailsObject



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def emails
  @emails
end

#logo_urlObject



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def logo_url
  @logo_url
end

#nameObject



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def name
  @name
end

#phone_numbersObject



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def phone_numbers
  @phone_numbers
end

#privacy_urlObject



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def privacy_url
  @privacy_url
end

#terms_of_service_urlObject



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

#verticalObject



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def vertical
  @vertical
end

#websitesObject



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(options = {})
{
        "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(options)
end