Sha256: 56dadcc6203c691ae286da56e32fdba2bf1ebc0ea56b3acf25c00d68274bdeb6

Contents?: true

Size: 743 Bytes

Versions: 4

Compression:

Stored size: 743 Bytes

Contents

# frozen_string_literal: true

module TwilioBase
  module Fake
    module Notify
      class Notification
        attr_accessor :sid

        NotificationInstance = Struct.new(
          :account_sid,
          :action,
          :alexa,
          :apn,
          :body,
          :data,
          :date_created,
          :facebook_messenger,
          :fcm,
          :gcm,
          :identities,
          :priority,
          :segments,
          :service_sid,
          :sid,
          :sms,
          :sound,
          :tags,
          :title,
          :ttl
        )

        def initialize(_attributes = {})
          NotificationInstance.new(
            sid: SecureRandom.hex(16)
          )
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twilio_base-1.11.1101 spec/support/twilio_base/fake/notify/notification.rb
twilio_base-1.11.11 spec/support/twilio_base/fake/notify/notification.rb
twilio_base-1.9.0 spec/support/twilio_base/fake/notify/notification.rb
twilio_base-1.8.0 spec/support/twilio_base/fake/notify/notification.rb