Class: Ingresses::Mailgun::InboundEmailsController::Authenticator
- Defined in:
- actionmailbox/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.
87 88 89 |
# File 'actionmailbox/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb', line 87 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
85 86 87 |
# File 'actionmailbox/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb', line 85 def key @key end |
#signature ⇒ Object (readonly)
Returns the value of attribute signature
85 86 87 |
# File 'actionmailbox/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb', line 85 def signature @signature end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp
85 86 87 |
# File 'actionmailbox/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb', line 85 def @timestamp end |
#token ⇒ Object (readonly)
Returns the value of attribute token
85 86 87 |
# File 'actionmailbox/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb', line 85 def token @token end |
Instance Method Details
#authenticated? ⇒ Boolean
91 92 93 |
# File 'actionmailbox/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb', line 91 def authenticated? signed? && recent? end |