Class: GetStream::Generated::Models::SipInboundCredentials
- Defined in:
- lib/getstream_ruby/generated/models/sip_inbound_credentials.rb
Overview
Credentials for SIP inbound call authentication
Instance Attribute Summary collapse
-
#call_custom_data ⇒ Object
Custom data associated with the call.
-
#call_id ⇒ String
ID of the call.
-
#call_type ⇒ String
Type of the call.
-
#token ⇒ String
Authentication token for the call.
-
#user_custom_data ⇒ Object
Custom data associated with the user.
-
#user_id ⇒ String
User ID for the call.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SipInboundCredentials
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ SipInboundCredentials
Initialize with attributes
32 33 34 35 36 37 38 39 40 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 32 def initialize(attributes = {}) super(attributes) @call_id = attributes[:call_id] || attributes['call_id'] @call_type = attributes[:call_type] || attributes['call_type'] @token = attributes[:token] || attributes['token'] @user_id = attributes[:user_id] || attributes['user_id'] @call_custom_data = attributes[:call_custom_data] || attributes['call_custom_data'] @user_custom_data = attributes[:user_custom_data] || attributes['user_custom_data'] end |
Instance Attribute Details
#call_custom_data ⇒ Object
Returns Custom data associated with the call.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 26 def call_custom_data @call_custom_data end |
#call_id ⇒ String
Returns ID of the call.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 14 def call_id @call_id end |
#call_type ⇒ String
Returns Type of the call.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 17 def call_type @call_type end |
#token ⇒ String
Returns Authentication token for the call.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 20 def token @token end |
#user_custom_data ⇒ Object
Returns Custom data associated with the user.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 29 def user_custom_data @user_custom_data end |
#user_id ⇒ String
Returns User ID for the call.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 23 def user_id @user_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 43 def self.json_field_mappings { call_id: 'call_id', call_type: 'call_type', token: 'token', user_id: 'user_id', call_custom_data: 'call_custom_data', user_custom_data: 'user_custom_data' } end |