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.



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

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

Instance Attribute Details

#labelObject

Parameters:



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

def label
  @label
end

#websiteObject

Parameters:



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

def website
  @website
end

Instance Method Details

#to_json(options = {}) ⇒ Object



114
115
116
117
118
119
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 114

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