Class: Twilio::REST::Webhooks::V1::AuthProfileList::PatchAuthProfile
- Inherits:
-
Object
- Object
- Twilio::REST::Webhooks::V1::AuthProfileList::PatchAuthProfile
- 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
-
#initialize(payload) ⇒ PatchAuthProfile
constructor
A new instance of PatchAuthProfile.
- #to_json(options = {}) ⇒ Object
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
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( = {}) { "friendlyName": @friendly_name, }.to_json() end |