Class: KakaoPush::Gcm

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

Instance Method Summary collapse

Methods included from ToHashable

#to_hash

Constructor Details

#initialize(collapse: nil, delay_while_idle: nil, time_to_live: nil, dry_run: nil, priority: nil, return_url: nil, custom_field: nil, push_token: nil) ⇒ Gcm

Returns a new instance of Gcm.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/kakao_push/gcm.rb', line 5

def initialize(
  collapse: nil,
  delay_while_idle: nil,
  time_to_live: nil,
  dry_run: nil,
  priority: nil,
  return_url: nil,
  custom_field: nil,
  push_token: nil
)
  @collapse = collapse
  @delay_while_idle = delay_while_idle
  @time_to_live = time_to_live
  @dry_run = dry_run
  @priority = priority
  @return_url = return_url
  @custom_field = custom_field
  @push_token = push_token
end