Class: Ghost::Authentication::ContentKey
- Inherits:
-
Object
- Object
- Ghost::Authentication::ContentKey
- Defined in:
- lib/ghost/authentication/content_key.rb
Instance Method Summary collapse
- #apply(request) ⇒ Object
-
#initialize(key) ⇒ ContentKey
constructor
A new instance of ContentKey.
Constructor Details
#initialize(key) ⇒ ContentKey
Returns a new instance of ContentKey.
6 7 8 |
# File 'lib/ghost/authentication/content_key.rb', line 6 def initialize(key) @key = key end |
Instance Method Details
#apply(request) ⇒ Object
10 11 12 |
# File 'lib/ghost/authentication/content_key.rb', line 10 def apply(request) request.params["key"] = @key end |