Class: Twilio::REST::Assistants::V1::AssistantList::AssistantsV1ServiceSegmentCredential

Inherits:
Object
  • Object
show all
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

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_keyObject

Parameters:



67
68
69
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 67

def profile_api_key
  @profile_api_key
end

#space_idObject

Parameters:



67
68
69
# File 'lib/twilio-ruby/rest/assistants/v1/assistant.rb', line 67

def space_id
  @space_id
end

#write_keyObject

Parameters:



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(options = {})
{
        "profile_api_key": @profile_api_key,
        "space_id": @space_id,
        "write_key": @write_key,
}.to_json(options)
end