lib/notifiable/sender.rb in notifiable-sender-0.7.0 vs lib/notifiable/sender.rb in notifiable-sender-0.7.1
- old
+ new
@@ -10,16 +10,16 @@
raise 'access_id cannot be nil' if !access_id || access_id.empty?
@base_uri, @access_id, @secret_key, @logger = base_uri, access_id, secret_key, logger
end
- def send_media_notification_to_users(user_aliases, media_url, title: nil, message: nil, parameters: {}, content_avaliable: nil, thread_id:nil)
+ def send_media_notification_to_users(user_aliases, media_url, title: nil, message: nil, parameters: {}, content_available: nil, thread_id:nil)
raise 'user_aliases should be an array' unless user_aliases.is_a? Array
raise 'media_url should not be blank' if media_url.nil? || media_url.empty?
parameters = {media_url: media_url}.merge(parameters)
filters = [{property: "user_alias", predicate: "in", value: user_aliases}]
- send_notification(title: title, message: message, parameters: parameters, content_available: content_avaliable, filters: filters, thread_id: thread_id, mutable_content: true)
+ send_notification(title: title, message: message, parameters: parameters, content_available: content_available, filters: filters, thread_id: thread_id, mutable_content: true)
end
def send_notification_to_users(user_aliases, title: nil, message: nil, parameters: nil, content_available: nil, thread_id: nil, mutable_content: nil)
raise 'user_aliases should be an array' unless user_aliases.is_a? Array