Class: Twilio::REST::Webhooks::V1::AuthProfileList::PatchAuthProfile

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ PatchAuthProfile

Returns a new instance of PatchAuthProfile.



25
26
27
# File 'lib/twilio-ruby/rest/webhooks/v1/auth_profile.rb', line 25

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

Instance Attribute Details

#friendly_name ⇒ Object

Parameters:

  • : (friendly_name) —

    [String] Human-readable name for identification



24
25
26
# File 'lib/twilio-ruby/rest/webhooks/v1/auth_profile.rb', line 24

def friendly_name
  @friendly_name
end

Instance Method Details

#to_json(options = {}) ⇒ Object



28
29
30
31
32
# File 'lib/twilio-ruby/rest/webhooks/v1/auth_profile.rb', line 28

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