Class: Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceSegmentCredential
- Inherits:
-
Object
- Object
- Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceSegmentCredential
- Defined in:
- lib/twilio-ruby/rest/assistants/v1/assistant.rb,
lib/twilio-ruby/rest/assistants/v1/assistant.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ AssistantsV1ServiceSegmentCredential
constructor
A new instance of AssistantsV1ServiceSegmentCredential.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ AssistantsV1ServiceSegmentCredential
Returns a new instance of AssistantsV1ServiceSegmentCredential.
68 69 70 71 72 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 68 def initialize(payload) @profile_api_key = payload["profile_api_key"] @space_id = payload["space_id"] @write_key = payload["write_key"] end |
Instance Attribute Details
#profile_api_key ⇒ Object
67 68 69 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 67 def profile_api_key @profile_api_key end |
#space_id ⇒ Object
67 68 69 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 67 def space_id @space_id end |
#write_key ⇒ Object
67 68 69 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 67 def write_key @write_key end |
Instance Method Details
#to_json(options = {}) ⇒ Object
73 74 75 76 77 78 79 |
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 73 def to_json( = {}) { "profile_api_key": @profile_api_key, "space_id": @space_id, "write_key": @write_key, }.to_json() end |