module Grocer

Constants

CertificateExpiredError
Error
InvalidCommandError
InvalidFormatError
NoGatewayError
NoPayloadError
NoPortError
PayloadTooLargeError
VERSION

Public Class Methods

env() click to toggle source
# File lib/grocer.rb, line 24
def self.env
  ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
end
feedback(options) click to toggle source
# File lib/grocer.rb, line 28
def self.feedback(options)
  connection = FeedbackConnection.new(options)
  Feedback.new(connection)
end
pusher(options) click to toggle source
# File lib/grocer.rb, line 33
def self.pusher(options)
  connection = PushConnection.new(options)
  Pusher.new(connection)
end
server(options = { }) click to toggle source
# File lib/grocer.rb, line 38
def self.server(options = { })
  ssl_server = SSLServer.new(options)
  Server.new(ssl_server)
end