Class: Pushofy::ApplePayload

Inherits:
Payload
  • Object
show all
Defined in:
lib/pushofy/applepayload.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, sound_name, badge_number, action_key_caption, dict) ⇒ ApplePayload

Returns a new instance of ApplePayload.



10
11
12
13
14
15
16
# File 'lib/pushofy/applepayload.rb', line 10

def initialize(message, sound_name, badge_number, action_key_caption, dict)
  @message = message
  @sound_name = sound_name
  @badge_number = badge_number
  @action_key_caption = action_key_caption
  @dict = dict
end

Instance Attribute Details

#action_key_captionObject

Returns the value of attribute action_key_caption.



8
9
10
# File 'lib/pushofy/applepayload.rb', line 8

def action_key_caption
  @action_key_caption
end

#badge_numberObject

Returns the value of attribute badge_number.



7
8
9
# File 'lib/pushofy/applepayload.rb', line 7

def badge_number
  @badge_number
end

#dictObject

Returns the value of attribute dict.



9
10
11
# File 'lib/pushofy/applepayload.rb', line 9

def dict
  @dict
end

#messageObject

Returns the value of attribute message.



5
6
7
# File 'lib/pushofy/applepayload.rb', line 5

def message
  @message
end

#sound_nameObject

Returns the value of attribute sound_name.



6
7
8
# File 'lib/pushofy/applepayload.rb', line 6

def sound_name
  @sound_name
end