Method: Grocer::Connection#initialize
- Defined in:
- lib/grocer/connection.rb
#initialize(options = {}) ⇒ Connection
Returns a new instance of Connection.
8 9 10 11 12 13 14 |
# File 'lib/grocer/connection.rb', line 8 def initialize( = {}) @certificate = .fetch(:certificate) { nil } @passphrase = .fetch(:passphrase) { nil } @gateway = .fetch(:gateway) { fail NoGatewayError } @port = .fetch(:port) { fail NoPortError } @retries = .fetch(:retries) { 3 } end |