Class: GetStream::Generated::Models::SIPTrunkResponse
- Defined in:
- lib/getstream_ruby/generated/models/sip_trunk_response.rb
Overview
SIP trunk information
Instance Attribute Summary collapse
-
#created_at ⇒ DateTime
Creation timestamp.
-
#id ⇒ String
Unique identifier for the SIP trunk.
-
#name ⇒ String
Name of the SIP trunk.
-
#numbers ⇒ Array<String>
Phone numbers associated with this SIP trunk.
-
#password ⇒ String
Password for SIP trunk authentication.
-
#updated_at ⇒ DateTime
Last update timestamp.
-
#uri ⇒ String
The URI for the SIP trunk.
-
#username ⇒ String
Username for SIP trunk authentication.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SIPTrunkResponse
constructor
Initialize with attributes.
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_at ⇒ DateTime
Returns Creation timestamp.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 14 def created_at @created_at end |
#id ⇒ String
Returns 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 |
#name ⇒ String
Returns Name of the SIP trunk.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 20 def name @name end |
#numbers ⇒ Array<String>
Returns 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 |
#password ⇒ String
Returns 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_at ⇒ DateTime
Returns Last update timestamp.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/sip_trunk_response.rb', line 26 def updated_at @updated_at end |
#uri ⇒ String
Returns 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 |
#username ⇒ String
Returns 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_mappings ⇒ Object
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 |