Sha256: 8688acd5f9e3f79d7f95d137055b611a46aa6e1f0be5277ee866f849daedf5b3
Contents?: true
Size: 462 Bytes
Versions: 11
Compression:
Stored size: 462 Bytes
Contents
# frozen_string_literal: true module Shark class Notification < Base extend NotificationService::Resource custom_endpoint :bulk_creation, on: :collection, request_method: :post custom_endpoint :read_all, on: :collection, request_method: :patch def self.create_multiple(attributes) data = { data: { type: 'notifications', attributes: attributes } } bulk_creation(data) end end end
Version data entries
11 entries across 11 versions & 1 rubygems