Class: Twilio::REST::Webhooks::V1::SettingList::PostAuthSetting

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

Returns a new instance of PostAuthSetting.



80
81
82
83
84
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 80

def initialize(payload)
        @source = payload["source"]
        @value = payload["value"]
        @auth_profile_id = payload["auth_profile_id"]
end

Instance Attribute Details

#auth_profile_id ⇒ Object

Parameters:

  • : (source) —

    [String] Indicates credentials come from an AuthProfile resource

  • : (value) —

    [SettingList.PostInlineAuthValue]

  • : (auth_profile_id) —

    [String] AuthProfile resource ID (TypeID/TTID format)



79
80
81
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 79

def auth_profile_id
  @auth_profile_id
end

#source ⇒ Object

Parameters:

  • : (source) —

    [String] Indicates credentials come from an AuthProfile resource

  • : (value) —

    [SettingList.PostInlineAuthValue]

  • : (auth_profile_id) —

    [String] AuthProfile resource ID (TypeID/TTID format)



79
80
81
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 79

def source
  @source
end

#value ⇒ Object

Parameters:

  • : (source) —

    [String] Indicates credentials come from an AuthProfile resource

  • : (value) —

    [SettingList.PostInlineAuthValue]

  • : (auth_profile_id) —

    [String] AuthProfile resource ID (TypeID/TTID format)



79
80
81
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 79

def value
  @value
end

Instance Method Details

#to_json(options = {}) ⇒ Object



85
86
87
88
89
90
91
# File 'lib/twilio-ruby/rest/webhooks/v1/setting.rb', line 85

def to_json(options = {})
{
        "source": @source,
        "value": @value,
        "authProfileId": @auth_profile_id,
}.to_json(options)
end