Class: GetStream::Generated::Models::SIPTrunkResponse

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

Overview

SIP trunk information

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 = {}) ⇒ SIPTrunkResponse

Initialize with attributes



38
39
40
41
42
43
44
45
46
47
48
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 38

def initialize(attributes = {})
  super(attributes)
  @created_at = attributes[:created_at] || attributes['created_at']
  @id = attributes[:id] || attributes['id']
  @name = attributes[:name] || attributes['name']
  @password = attributes[:password] || attributes['password']
  @updated_at = attributes[:updated_at] || attributes['updated_at']
  @uri = attributes[:uri] || attributes['uri']
  @username = attributes[:username] || attributes['username']
  @numbers = attributes[:numbers] || attributes['numbers']
end

Instance Attribute Details

#created_atDateTime

Returns Creation timestamp.

Returns:

  • (DateTime)

    Creation timestamp



14
15
16
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 14

def created_at
  @created_at
end

#idString

Returns Unique identifier for the SIP trunk.

Returns:

  • (String)

    Unique identifier for the SIP trunk



17
18
19
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 17

def id
  @id
end

#nameString

Returns Name of the SIP trunk.

Returns:

  • (String)

    Name of the SIP trunk



20
21
22
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 20

def name
  @name
end

#numbersArray<String>

Returns Phone numbers associated with this SIP trunk.

Returns:

  • (Array<String>)

    Phone numbers associated with this SIP trunk



35
36
37
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 35

def numbers
  @numbers
end

#passwordString

Returns Password for SIP trunk authentication.

Returns:

  • (String)

    Password for SIP trunk authentication



23
24
25
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 23

def password
  @password
end

#updated_atDateTime

Returns Last update timestamp.

Returns:

  • (DateTime)

    Last update timestamp



26
27
28
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 26

def updated_at
  @updated_at
end

#uriString

Returns The URI for the SIP trunk.

Returns:

  • (String)

    The URI for the SIP trunk



29
30
31
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 29

def uri
  @uri
end

#usernameString

Returns Username for SIP trunk authentication.

Returns:

  • (String)

    Username for SIP trunk authentication



32
33
34
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 32

def username
  @username
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 51

def self.json_field_mappings
  {
    created_at: 'created_at',
    id: 'id',
    name: 'name',
    password: 'password',
    updated_at: 'updated_at',
    uri: 'uri',
    username: 'username',
    numbers: 'numbers'
  }
end