Class: GetStream::Generated::Models::PushNotificationFields
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::PushNotificationFields
show all
- Defined in:
- lib/getstream_ruby/generated/models/push_notification_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 with attributes
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/getstream_ruby/generated/models/push_notification_fields.rb', line 35
def initialize(attributes = {})
super(attributes)
@offline_only = attributes[:offline_only] || attributes['offline_only']
@version = attributes[:version] || attributes['version']
@apn = attributes[:apn] || attributes['apn']
@firebase = attributes[:firebase] || attributes['firebase']
@huawei = attributes[:huawei] || attributes['huawei']
@xiaomi = attributes[:xiaomi] || attributes['xiaomi']
@providers = attributes[:providers] || attributes['providers'] || nil
end
|
Instance Attribute Details
20
21
22
|
# File 'lib/getstream_ruby/generated/models/push_notification_fields.rb', line 20
def apn
@apn
end
|
23
24
25
|
# File 'lib/getstream_ruby/generated/models/push_notification_fields.rb', line 23
def firebase
@firebase
end
|
26
27
28
|
# File 'lib/getstream_ruby/generated/models/push_notification_fields.rb', line 26
def huawei
@huawei
end
|
#offline_only ⇒ Boolean
14
15
16
|
# File 'lib/getstream_ruby/generated/models/push_notification_fields.rb', line 14
def offline_only
@offline_only
end
|
32
33
34
|
# File 'lib/getstream_ruby/generated/models/push_notification_fields.rb', line 32
def providers
@providers
end
|
#version ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/push_notification_fields.rb', line 17
def version
@version
end
|
29
30
31
|
# File 'lib/getstream_ruby/generated/models/push_notification_fields.rb', line 29
def xiaomi
@xiaomi
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
47
48
49
50
51
52
53
54
55
56
57
|
# File 'lib/getstream_ruby/generated/models/push_notification_fields.rb', line 47
def self.json_field_mappings
{
offline_only: 'offline_only',
version: 'version',
apn: 'apn',
firebase: 'firebase',
huawei: 'huawei',
xiaomi: 'xiaomi',
providers: 'providers'
}
end
|