Class: SpreeCmCommissioner::GuestDynamicFieldNotification
- Inherits:
-
NoticedFcmBase
- Object
- Noticed::Base
- NoticedFcmBase
- SpreeCmCommissioner::GuestDynamicFieldNotification
show all
- Defined in:
- app/notifications/spree_cm_commissioner/guest_dynamic_field_notification.rb
Instance Method Summary
collapse
#android_settings, #apns_settings, #cleanup_device_token, #convert_hash_values_to_str, #fcm_credentials, #fcm_device_tokens, #format_for_database, #format_notification, #image_url, #message, #payload, #title, #translatable_options
Instance Method Details
11
12
13
14
15
16
17
18
|
# File 'app/notifications/spree_cm_commissioner/guest_dynamic_field_notification.rb', line 11
def
{
guest_id: guest.id,
line_item_id: guest.line_item_id,
order_token: guest.line_item.order.token,
notification_type: type
}
end
|
#guest ⇒ Object
7
8
9
|
# File 'app/notifications/spree_cm_commissioner/guest_dynamic_field_notification.rb', line 7
def guest
params[:guest]
end
|
#notificable ⇒ Object
3
4
5
|
# File 'app/notifications/spree_cm_commissioner/guest_dynamic_field_notification.rb', line 3
def notificable
guest
end
|
#type ⇒ Object
20
21
22
|
# File 'app/notifications/spree_cm_commissioner/guest_dynamic_field_notification.rb', line 20
def type
'guest_dynamic_field_notification'
end
|