Class: Twilio::REST::Webhooks::V1::SharedKeyList::PatchSharedKey
- Inherits:
-
Object
- Object
- Twilio::REST::Webhooks::V1::SharedKeyList::PatchSharedKey
- Defined in:
- lib/twilio-ruby/rest/webhooks/v1/shared_key.rb,
lib/twilio-ruby/rest/webhooks/v1/shared_key.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ PatchSharedKey
constructor
A new instance of PatchSharedKey.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ PatchSharedKey
Returns a new instance of PatchSharedKey.
25 26 27 |
# File 'lib/twilio-ruby/rest/webhooks/v1/shared_key.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/shared_key.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/shared_key.rb', line 28 def to_json( = {}) { "friendlyName": @friendly_name, }.to_json() end |