Class: Shark::Notification

Inherits:
Base
  • Object
show all
Extended by:
Shark::NotificationService::Resource
Defined in:
lib/shark/notification.rb

Class Method Summary collapse

Methods inherited from Base

add_datetime_accessors

Class Method Details

.create_multiple(attributes) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/shark/notification.rb', line 10

def self.create_multiple(attributes)
  data = {
    data: {
      type: 'notifications',
      attributes: attributes
    }
  }

  bulk_creation(data)
end