Class: Ingresses::Mandrill::InboundEmailsController::Authenticator
- Inherits:
- 
      Object
      
        - Object
- Ingresses::Mandrill::InboundEmailsController::Authenticator
 
- Defined in:
- app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb
Instance Attribute Summary collapse
- 
  
    
      #key  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute key. 
- 
  
    
      #request  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute request. 
Instance Method Summary collapse
- #authenticated? ⇒ Boolean
- 
  
    
      #initialize(request, key)  ⇒ Authenticator 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Authenticator. 
Constructor Details
#initialize(request, key) ⇒ Authenticator
Returns a new instance of Authenticator.
| 64 65 66 | # File 'app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb', line 64 def initialize(request, key) @request, @key = request, key end | 
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
| 62 63 64 | # File 'app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb', line 62 def key @key end | 
#request ⇒ Object (readonly)
Returns the value of attribute request.
| 62 63 64 | # File 'app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb', line 62 def request @request end | 
Instance Method Details
#authenticated? ⇒ Boolean
| 68 69 70 | # File 'app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb', line 68 def authenticated? ActiveSupport::SecurityUtils.secure_compare given_signature, expected_signature end |