Class: Twilio::REST::Webhooks::V1::SharedKeyList::PostSharedKey
- Inherits:
-
Object
- Object
- Twilio::REST::Webhooks::V1::SharedKeyList::PostSharedKey
- 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) ⇒ PostSharedKey
constructor
A new instance of PostSharedKey.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ PostSharedKey
Returns a new instance of PostSharedKey.
38 39 40 |
# File 'lib/twilio-ruby/rest/webhooks/v1/shared_key.rb', line 38 def initialize(payload) @friendly_name = payload["friendly_name"] end |
Instance Attribute Details
#friendly_name ⇒ Object
37 38 39 |
# File 'lib/twilio-ruby/rest/webhooks/v1/shared_key.rb', line 37 def friendly_name @friendly_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
41 42 43 44 45 |
# File 'lib/twilio-ruby/rest/webhooks/v1/shared_key.rb', line 41 def to_json( = {}) { "friendlyName": @friendly_name, }.to_json() end |