Class: GetStream::Generated::Models::SIPPinProtectionConfigsResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::SIPPinProtectionConfigsResponse
- Defined in:
- lib/getstream_ruby/generated/models/sip_pin_protection_configs_response.rb
Overview
PIN protection configuration response
Instance Attribute Summary collapse
-
#default_pin ⇒ String
Default PIN to use if there is no PIN set on the call object.
-
#enabled ⇒ Boolean
Whether PIN protection is enabled.
-
#max_attempts ⇒ Integer
Maximum number of PIN attempts allowed.
-
#required_pin_digits ⇒ Integer
Number of digits required for the PIN.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SIPPinProtectionConfigsResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ SIPPinProtectionConfigsResponse
Initialize with attributes
26 27 28 29 30 31 32 |
# File 'lib/getstream_ruby/generated/models/sip_pin_protection_configs_response.rb', line 26 def initialize(attributes = {}) super(attributes) @enabled = attributes[:enabled] || attributes['enabled'] @default_pin = attributes[:default_pin] || attributes['default_pin'] || nil @max_attempts = attributes[:max_attempts] || attributes['max_attempts'] || nil @required_pin_digits = attributes[:required_pin_digits] || attributes['required_pin_digits'] || nil end |
Instance Attribute Details
#default_pin ⇒ String
17 18 19 |
# File 'lib/getstream_ruby/generated/models/sip_pin_protection_configs_response.rb', line 17 def default_pin @default_pin end |
#enabled ⇒ Boolean
14 15 16 |
# File 'lib/getstream_ruby/generated/models/sip_pin_protection_configs_response.rb', line 14 def enabled @enabled end |
#max_attempts ⇒ Integer
20 21 22 |
# File 'lib/getstream_ruby/generated/models/sip_pin_protection_configs_response.rb', line 20 def max_attempts @max_attempts end |
#required_pin_digits ⇒ Integer
23 24 25 |
# File 'lib/getstream_ruby/generated/models/sip_pin_protection_configs_response.rb', line 23 def required_pin_digits @required_pin_digits end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
35 36 37 38 39 40 41 42 |
# File 'lib/getstream_ruby/generated/models/sip_pin_protection_configs_response.rb', line 35 def self.json_field_mappings { enabled: 'enabled', default_pin: 'default_pin', max_attempts: 'max_attempts', required_pin_digits: 'required_pin_digits' } end |