Class: KakaoPush::Apns

Inherits:
Object
  • Object
show all
Includes:
ToHashable
Defined in:
lib/kakao_push/apns.rb

Instance Method Summary collapse

Methods included from ToHashable

#to_hash

Constructor Details

#initialize(badge: nil, sound: nil, push_alert: nil, message: nil, custom_field: nil, push_token: nil, apns_env: nil) ⇒ Apns

Returns a new instance of Apns.



5
6
7
8
9
10
11
12
13
# File 'lib/kakao_push/apns.rb', line 5

def initialize(badge: nil, sound: nil, push_alert: nil, message: nil, custom_field: nil, push_token: nil, apns_env: nil)
  @badge = badge
  @sound = sound
  @push_alert = push_alert
  @message = message
  @custom_field = custom_field
  @push_token = push_token
  @apns_env = apns_env
end