Class: GetStream::Generated::Models::SIPInboundRoutingRuleResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::SIPInboundRoutingRuleResponse
- Defined in:
- lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb
Overview
SIP Inbound Routing Rule response
Instance Attribute Summary collapse
- #call_configs ⇒ SIPCallConfigsResponse
-
#called_numbers ⇒ Array<String>
List of called numbers.
- #caller_configs ⇒ SIPCallerConfigsResponse
-
#caller_numbers ⇒ Array<String>
List of caller numbers.
-
#created_at ⇒ DateTime
Creation timestamp.
- #direct_routing_configs ⇒ SIPDirectRoutingRuleCallConfigsResponse
- #duration ⇒ String
-
#id ⇒ String
Unique identifier of the SIP Inbound Routing Rule.
-
#name ⇒ String
Name of the SIP Inbound Routing Rule.
- #pin_protection_configs ⇒ SIPPinProtectionConfigsResponse
- #pin_routing_configs ⇒ SIPInboundRoutingRulePinConfigsResponse
-
#trunk_ids ⇒ Array<String>
List of SIP trunk IDs.
-
#updated_at ⇒ DateTime
Last update timestamp.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SIPInboundRoutingRuleResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ SIPInboundRoutingRuleResponse
Initialize with attributes
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb', line 53 def initialize(attributes = {}) super(attributes) @created_at = attributes[:created_at] || attributes['created_at'] @duration = attributes[:duration] || attributes['duration'] @id = attributes[:id] || attributes['id'] @name = attributes[:name] || attributes['name'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @called_numbers = attributes[:called_numbers] || attributes['called_numbers'] @trunk_ids = attributes[:trunk_ids] || attributes['trunk_ids'] @caller_numbers = attributes[:caller_numbers] || attributes['caller_numbers'] || nil @call_configs = attributes[:call_configs] || attributes['call_configs'] || nil @caller_configs = attributes[:caller_configs] || attributes['caller_configs'] || nil @direct_routing_configs = attributes[:direct_routing_configs] || attributes['direct_routing_configs'] || nil @pin_protection_configs = attributes[:pin_protection_configs] || attributes['pin_protection_configs'] || nil @pin_routing_configs = attributes[:pin_routing_configs] || attributes['pin_routing_configs'] || nil end |
Instance Attribute Details
#call_configs ⇒ SIPCallConfigsResponse
38 39 40 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb', line 38 def call_configs @call_configs end |
#called_numbers ⇒ Array<String>
Returns List of called numbers.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb', line 29 def called_numbers @called_numbers end |
#caller_configs ⇒ SIPCallerConfigsResponse
41 42 43 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb', line 41 def caller_configs @caller_configs end |
#caller_numbers ⇒ Array<String>
Returns List of caller numbers.
35 36 37 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb', line 35 def caller_numbers @caller_numbers end |
#created_at ⇒ DateTime
Returns Creation timestamp.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb', line 14 def created_at @created_at end |
#direct_routing_configs ⇒ SIPDirectRoutingRuleCallConfigsResponse
44 45 46 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb', line 44 def direct_routing_configs @direct_routing_configs end |
#duration ⇒ String
17 18 19 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb', line 17 def duration @duration end |
#id ⇒ String
Returns Unique identifier of the SIP Inbound Routing Rule.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb', line 20 def id @id end |
#name ⇒ String
Returns Name of the SIP Inbound Routing Rule.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb', line 23 def name @name end |
#pin_protection_configs ⇒ SIPPinProtectionConfigsResponse
47 48 49 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb', line 47 def pin_protection_configs @pin_protection_configs end |
#pin_routing_configs ⇒ SIPInboundRoutingRulePinConfigsResponse
50 51 52 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb', line 50 def pin_routing_configs @pin_routing_configs end |
#trunk_ids ⇒ Array<String>
Returns List of SIP trunk IDs.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb', line 32 def trunk_ids @trunk_ids end |
#updated_at ⇒ DateTime
Returns Last update timestamp.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb', line 26 def updated_at @updated_at end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/getstream_ruby/generated/models/sip_inbound_routing_rule_response.rb', line 71 def self.json_field_mappings { created_at: 'created_at', duration: 'duration', id: 'id', name: 'name', updated_at: 'updated_at', called_numbers: 'called_numbers', trunk_ids: 'trunk_ids', caller_numbers: 'caller_numbers', call_configs: 'call_configs', caller_configs: 'caller_configs', direct_routing_configs: 'direct_routing_configs', pin_protection_configs: 'pin_protection_configs', pin_routing_configs: 'pin_routing_configs' } end |