Class: GetStream::Generated::Models::APNConfigFields

Inherits:
BaseModel
  • Object
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.fetch(:development) { attributes.fetch('development', nil) }
  @enabled = attributes.fetch(:enabled) { attributes.fetch('enabled', nil) }
  @auth_key = attributes.fetch(:auth_key) { attributes.fetch('auth_key', nil) }
  @auth_type = attributes.fetch(:auth_type) { attributes.fetch('auth_type', nil) }
  @bundle_id = attributes.fetch(:bundle_id) { attributes.fetch('bundle_id', nil) }
  @host = attributes.fetch(:host) { attributes.fetch('host', nil) }
  @key_id = attributes.fetch(:key_id) { attributes.fetch('key_id', nil) }
  @notification_template = attributes.fetch(:notification_template) { attributes.fetch('notification_template', nil) }
  @p12_cert = attributes.fetch(:p12_cert) { attributes.fetch('p12_cert', nil) }
  @team_id = attributes.fetch(:team_id) { attributes.fetch('team_id', nil) }
end

Instance Attribute Details

#auth_key ⇒ String

Returns:

  • (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

Returns:

  • (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

Returns:

  • (String)


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

def bundle_id
  @bundle_id
end

#development ⇒ Boolean

Returns:

  • (Boolean)


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

def development
  @development
end

#enabled ⇒ Boolean

Returns:

  • (Boolean)


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

def enabled
  @enabled
end

#host ⇒ String

Returns:

  • (String)


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

def host
  @host
end

#key_id ⇒ String

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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