Sha256: afb5f8dc2920ed5865ddccc443ad381e3a10e5b1583743c94184c388334c43e5

Contents?: true

Size: 390 Bytes

Versions: 11

Compression:

Stored size: 390 Bytes

Contents

class <%= class_name %>Notifier < PushToSNS::PushNotifier
  message "<%= human_name %>"
  type :<%= singular_name %>

  attr_accessor <%= attributes.map { |attribute| ":#{attribute.name}" }.join(", ") %>

  def devices
    fail PushToSNS::Messages::DEVICES_METHOD_NOT_IMPLEMENTED
  end

  def notification(device)
    fail PushToSNS::Messages::NOTIFICATION_METHOD_NOT_IMPLEMENTED
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
push_to_sns-0.6.0 lib/rails/generators/push_to_sns/templates/notifier.rb
push_to_sns-0.5.0 lib/rails/generators/push_to_sns/templates/notifier.rb
push_to_sns-0.4.1 lib/rails/generators/push_to_sns/templates/notifier.rb
push_to_sns-0.4.0 lib/rails/generators/push_to_sns/templates/notifier.rb
push_to_sns-0.3.3 lib/rails/generators/push_to_sns/templates/notifier.rb
push_to_sns-0.3.2 lib/rails/generators/push_to_sns/templates/notifier.rb
push_to_sns-0.3.1 lib/rails/generators/push_to_sns/templates/notifier.rb
push_to_sns-0.3.0 lib/rails/generators/push_to_sns/templates/notifier.rb
push_to_sns-0.2.0 lib/rails/generators/push_to_sns/templates/notifier.rb
push_to_sns-0.1.1 lib/rails/generators/push_to_sns/templates/notifier.rb
push_to_sns-0.1.0 lib/rails/generators/push_to_sns/templates/notifier.rb