Class: GetStream::Generated::Models::FirebaseConfigFields

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/firebase_config_fields.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 = {}) ⇒ FirebaseConfigFields

Initialize with attributes



32
33
34
35
36
37
38
39
40
# File 'lib/getstream_ruby/generated/models/firebase_config_fields.rb', line 32

def initialize(attributes = {})
  super(attributes)
  @enabled = attributes[:enabled] || attributes['enabled']
  @apn_template = attributes[:apn_template] || attributes['apn_template'] || nil
  @credentials_json = attributes[:credentials_json] || attributes['credentials_json'] || nil
  @data_template = attributes[:data_template] || attributes['data_template'] || nil
  @notification_template = attributes[:notification_template] || attributes['notification_template'] || nil
  @server_key = attributes[:server_key] || attributes['server_key'] || nil
end

Instance Attribute Details

#apn_templateString



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

def apn_template
  @apn_template
end

#credentials_jsonString



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

def credentials_json
  @credentials_json
end

#data_templateString



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

def data_template
  @data_template
end

#enabledBoolean



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

def enabled
  @enabled
end

#notification_templateString



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

def notification_template
  @notification_template
end

#server_keyString



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

def server_key
  @server_key
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



43
44
45
46
47
48
49
50
51
52
# File 'lib/getstream_ruby/generated/models/firebase_config_fields.rb', line 43

def self.json_field_mappings
  {
    enabled: 'enabled',
    apn_template: 'apn_template',
    credentials_json: 'credentials_json',
    data_template: 'data_template',
    notification_template: 'notification_template',
    server_key: 'server_key'
  }
end