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

Version Path
bima-shark-sdk-3.1.1 lib/shark/notification.rb
bima-shark-sdk-2.5.0 lib/shark/notification.rb
bima-shark-sdk-3.1.0 lib/shark/notification.rb
bima-shark-sdk-3.0.0 lib/shark/notification.rb
bima-shark-sdk-2.4.4 lib/shark/notification.rb
bima-shark-sdk-2.4.3 lib/shark/notification.rb
bima-shark-sdk-2.4.2 lib/shark/notification.rb
bima-shark-sdk-2.4.1 lib/shark/notification.rb
bima-shark-sdk-2.4.0 lib/shark/notification.rb
bima-shark-sdk-2.3.1 lib/shark/notification.rb
bima-shark-sdk-2.3.0 lib/shark/notification.rb