Class: GetStream::Generated::Models::PushPreferenceInput

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

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

Initialize with attributes



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

def initialize(attributes = {})
  super(attributes)
  @call_level = attributes[:call_level] || attributes['call_level'] || nil
  @channel_cid = attributes[:channel_cid] || attributes['channel_cid'] || nil
  @chat_level = attributes[:chat_level] || attributes['chat_level'] || nil
  @disabled_until = attributes[:disabled_until] || attributes['disabled_until'] || nil
  @feeds_level = attributes[:feeds_level] || attributes['feeds_level'] || nil
  @remove_disable = attributes[:remove_disable] || attributes['remove_disable'] || nil
  @user_id = attributes[:user_id] || attributes['user_id'] || nil
  @feeds_preferences = attributes[:feeds_preferences] || attributes['feeds_preferences'] || nil
end

Instance Attribute Details

#call_levelString



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

def call_level
  @call_level
end

#channel_cidString



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

def channel_cid
  @channel_cid
end

#chat_levelString



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

def chat_level
  @chat_level
end

#disabled_untilDateTime



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

def disabled_until
  @disabled_until
end

#feeds_levelString



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

def feeds_level
  @feeds_level
end

#feeds_preferencesFeedsPreferences



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

def feeds_preferences
  @feeds_preferences
end

#remove_disableBoolean



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

def remove_disable
  @remove_disable
end

#user_idString



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

def user_id
  @user_id
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/push_preference_input.rb', line 51

def self.json_field_mappings
  {
    call_level: 'call_level',
    channel_cid: 'channel_cid',
    chat_level: 'chat_level',
    disabled_until: 'disabled_until',
    feeds_level: 'feeds_level',
    remove_disable: 'remove_disable',
    user_id: 'user_id',
    feeds_preferences: 'feeds_preferences'
  }
end