Class: Ingresses::Mailgun::InboundEmailsController::Authenticator
- Inherits:
- 
      Object
      
        - Object
- Ingresses::Mailgun::InboundEmailsController::Authenticator
 
- Defined in:
- app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb
Instance Attribute Summary collapse
- 
  
    
      #key  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute key. 
- 
  
    
      #signature  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute signature. 
- 
  
    
      #timestamp  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute timestamp. 
- 
  
    
      #token  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute token. 
Instance Method Summary collapse
- #authenticated? ⇒ Boolean
- 
  
    
      #initialize(key:, timestamp:, token:, signature:)  ⇒ Authenticator 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Authenticator. 
Constructor Details
#initialize(key:, timestamp:, token:, signature:) ⇒ Authenticator
Returns a new instance of Authenticator.
| 86 87 88 | # File 'app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb', line 86 def initialize(key:, timestamp:, token:, signature:) @key, @timestamp, @token, @signature = key, Integer(), token, signature end | 
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
| 84 85 86 | # File 'app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb', line 84 def key @key end | 
#signature ⇒ Object (readonly)
Returns the value of attribute signature.
| 84 85 86 | # File 'app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb', line 84 def signature @signature end | 
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
| 84 85 86 | # File 'app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb', line 84 def @timestamp end | 
#token ⇒ Object (readonly)
Returns the value of attribute token.
| 84 85 86 | # File 'app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb', line 84 def token @token end | 
Instance Method Details
#authenticated? ⇒ Boolean
| 90 91 92 | # File 'app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb', line 90 def authenticated? signed? && recent? end |