Class: GetStream::Generated::Models::SipInboundCredentials

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/sip_inbound_credentials.rb

Overview

Credentials for SIP inbound call authentication

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_dataObject

Returns Custom data associated with the call.

Returns:

  • (Object)

    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_idString

Returns ID of the call.

Returns:

  • (String)

    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_typeString

Returns Type of the call.

Returns:

  • (String)

    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

#tokenString

Returns Authentication token for the call.

Returns:

  • (String)

    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_dataObject

Returns Custom data associated with the user.

Returns:

  • (Object)

    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_idString

Returns User ID for the call.

Returns:

  • (String)

    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_mappingsObject

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