Module: Rpush::Client::ActiveModel::Wns::Notification
- Included in:
- Rpush::Client::ActiveRecord::Wns::BadgeNotification, Rpush::Client::ActiveRecord::Wns::Notification, Rpush::Client::ActiveRecord::Wns::RawNotification, Redis::Wns::BadgeNotification, Redis::Wns::Notification, Redis::Wns::RawNotification
- Defined in:
- lib/rpush/client/active_model/wns/notification.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/rpush/client/active_model/wns/notification.rb', line 19 def self.included(base) base.instance_eval do include InstanceMethods validates :uri, presence: true validates :uri, format: { with: %r{https?://[\S]+} } validates :data, presence: true, unless: :skip_data_validation? end end |