Class: Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderProfileGenericResponseWebsites

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

Returns a new instance of MessagingV2ChannelsSenderProfileGenericResponseWebsites.



107
108
109
110
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 107

def initialize(payload)
        @website = payload["website"]
        @label = payload["label"]
end

Instance Attribute Details

#labelObject

Parameters:



106
107
108
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 106

def label
  @label
end

#websiteObject

Parameters:



106
107
108
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 106

def website
  @website
end

Instance Method Details

#to_json(options = {}) ⇒ Object



111
112
113
114
115
116
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 111

def to_json(options = {})
{
        "website": @website,
        "label": @label,
}.to_json(options)
end