class Andpush::Authenticator

Public Class Methods

new(server_key) click to toggle source
# File lib/andpush.rb, line 35
def initialize(server_key)
  @server_key = server_key
end

Public Instance Methods

before_request(uri, body, headers, options) click to toggle source
# File lib/andpush.rb, line 39
def before_request(uri, body, headers, options)
  headers['Authorization'] = "key=#{@server_key}"

  [uri, body, headers, options]
end