Class: GetStream::Generated::Models::APNConfigFields
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::APNConfigFields
show all
- Defined in:
- lib/getstream_ruby/generated/models/apn_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 = {}) ⇒ APNConfigFields
Initialize with attributes
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# File 'lib/getstream_ruby/generated/models/apn_config_fields.rb', line 44
def initialize(attributes = {})
super(attributes)
@development = attributes[:development] || attributes['development']
@enabled = attributes[:enabled] || attributes['enabled']
@auth_key = attributes[:auth_key] || attributes['auth_key'] || nil
@auth_type = attributes[:auth_type] || attributes['auth_type'] || nil
@bundle_id = attributes[:bundle_id] || attributes['bundle_id'] || nil
@host = attributes[:host] || attributes['host'] || nil
@key_id = attributes[:key_id] || attributes['key_id'] || nil
@notification_template = attributes[:notification_template] || attributes['notification_template'] || nil
@p12_cert = attributes[:p12_cert] || attributes['p12_cert'] || nil
@team_id = attributes[:team_id] || attributes['team_id'] || nil
end
|
Instance Attribute Details
#auth_key ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/apn_config_fields.rb', line 20
def auth_key
@auth_key
end
|
#auth_type ⇒ String
23
24
25
|
# File 'lib/getstream_ruby/generated/models/apn_config_fields.rb', line 23
def auth_type
@auth_type
end
|
#bundle_id ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/apn_config_fields.rb', line 26
def bundle_id
@bundle_id
end
|
#development ⇒ Boolean
14
15
16
|
# File 'lib/getstream_ruby/generated/models/apn_config_fields.rb', line 14
def development
@development
end
|
#enabled ⇒ Boolean
17
18
19
|
# File 'lib/getstream_ruby/generated/models/apn_config_fields.rb', line 17
def enabled
@enabled
end
|
#host ⇒ String
29
30
31
|
# File 'lib/getstream_ruby/generated/models/apn_config_fields.rb', line 29
def host
@host
end
|
#key_id ⇒ String
32
33
34
|
# File 'lib/getstream_ruby/generated/models/apn_config_fields.rb', line 32
def key_id
@key_id
end
|
#notification_template ⇒ String
35
36
37
|
# File 'lib/getstream_ruby/generated/models/apn_config_fields.rb', line 35
def notification_template
@notification_template
end
|
#p12_cert ⇒ String
38
39
40
|
# File 'lib/getstream_ruby/generated/models/apn_config_fields.rb', line 38
def p12_cert
@p12_cert
end
|
#team_id ⇒ String
41
42
43
|
# File 'lib/getstream_ruby/generated/models/apn_config_fields.rb', line 41
def team_id
@team_id
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# File 'lib/getstream_ruby/generated/models/apn_config_fields.rb', line 59
def self.json_field_mappings
{
development: 'development',
enabled: 'enabled',
auth_key: 'auth_key',
auth_type: 'auth_type',
bundle_id: 'bundle_id',
host: 'host',
key_id: 'key_id',
notification_template: 'notification_template',
p12_cert: 'p12_cert',
team_id: 'team_id'
}
end
|