Class: Ghost::Authentication::ContentKey

Inherits:
Object
  • Object
show all
Defined in:
lib/ghost/authentication/content_key.rb

Instance Method Summary collapse

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