Class: Twilio::REST::Webhooks::V1::SettingList::PatchSetting

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/webhooks/v1/setting.rb,
lib/twilio-ruby/rest/webhooks/v1/setting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ PatchSetting

Returns a new instance of PatchSetting.



63
64
65
66
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 63

def initialize(payload)
        @friendly_name = payload["friendly_name"]
        @description = payload["description"]
end

Instance Attribute Details

#description ⇒ Object

Parameters:

  • : (friendly_name) —

    [String] Human-readable name

  • : (description) —

    [String] Optional description of the Setting's purpose and usage



62
63
64
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 62

def description
  @description
end

#friendly_name ⇒ Object

Parameters:

  • : (friendly_name) —

    [String] Human-readable name

  • : (description) —

    [String] Optional description of the Setting's purpose and usage



62
63
64
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 62

def friendly_name
  @friendly_name
end

Instance Method Details

#to_json(options = {}) ⇒ Object



67
68
69
70
71
72
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 67

def to_json(options = {})
{
        "friendlyName": @friendly_name,
        "description": @description,
}.to_json(options)
end