Class: GetStream::Generated::Models::PrivacySettingsResponse
- Defined in:
- lib/getstream_ruby/generated/models/privacy_settings_response.rb
Instance Attribute Summary collapse
- #delivery_receipts ⇒ DeliveryReceiptsResponse
- #read_receipts ⇒ ReadReceiptsResponse
- #typing_indicators ⇒ TypingIndicatorsResponse
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ PrivacySettingsResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ PrivacySettingsResponse
Initialize with attributes
23 24 25 26 27 28 |
# File 'lib/getstream_ruby/generated/models/privacy_settings_response.rb', line 23 def initialize(attributes = {}) super(attributes) @delivery_receipts = attributes[:delivery_receipts] || attributes['delivery_receipts'] || nil @read_receipts = attributes[:read_receipts] || attributes['read_receipts'] || nil @typing_indicators = attributes[:typing_indicators] || attributes['typing_indicators'] || nil end |
Instance Attribute Details
#delivery_receipts ⇒ DeliveryReceiptsResponse
14 15 16 |
# File 'lib/getstream_ruby/generated/models/privacy_settings_response.rb', line 14 def delivery_receipts @delivery_receipts end |
#read_receipts ⇒ ReadReceiptsResponse
17 18 19 |
# File 'lib/getstream_ruby/generated/models/privacy_settings_response.rb', line 17 def read_receipts @read_receipts end |
#typing_indicators ⇒ TypingIndicatorsResponse
20 21 22 |
# File 'lib/getstream_ruby/generated/models/privacy_settings_response.rb', line 20 def typing_indicators @typing_indicators end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
31 32 33 34 35 36 37 |
# File 'lib/getstream_ruby/generated/models/privacy_settings_response.rb', line 31 def self.json_field_mappings { delivery_receipts: 'delivery_receipts', read_receipts: 'read_receipts', typing_indicators: 'typing_indicators' } end |