Class: SpamProtect::Policies::EncryptionPolicy

Inherits:
BasePolicy
  • Object
show all
Defined in:
lib/spam_protect/policies/encryption_policy.rb

Instance Method Summary collapse

Methods inherited from BasePolicy

#invalid?

Constructor Details

#initialize(payload) ⇒ EncryptionPolicy

Returns a new instance of EncryptionPolicy.



6
7
8
# File 'lib/spam_protect/policies/encryption_policy.rb', line 6

def initialize(payload)
  @payload = payload
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/spam_protect/policies/encryption_policy.rb', line 10

def valid?
  correct_shape? && between_timestamps?
end