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
-
#api_key ⇒ String
API key for the application.
-
#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
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 35 def initialize(attributes = {}) super(attributes) @api_key = attributes[:api_key] || attributes['api_key'] @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
#api_key ⇒ String
Returns API key for the application.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 14 def api_key @api_key end |
#call_custom_data ⇒ Object
Returns Custom data associated with the call.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 29 def call_custom_data @call_custom_data end |
#call_id ⇒ String
Returns ID of the call.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 17 def call_id @call_id end |
#call_type ⇒ String
Returns Type of the call.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 20 def call_type @call_type end |
#token ⇒ String
Returns Authentication token for the call.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 23 def token @token end |
#user_custom_data ⇒ Object
Returns Custom data associated with the user.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 32 def user_custom_data @user_custom_data end |
#user_id ⇒ String
Returns User ID for the call.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 26 def user_id @user_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_credentials.rb', line 47 def self.json_field_mappings { api_key: 'api_key', 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 |