Class: Gateway::Base

Inherits:
Object
  • Object
show all
Includes:
Connection, Feature::CategorizeError, Feature::ErrorHandle, Feature::NewRelic, Feature::Performance, Feature::Retry, Feature::Timeout
Defined in:
lib/gateway/base.rb

Constant Summary

Constants included from Feature::Timeout

Feature::Timeout::DEFAULT_TIMEOUT

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Connection

#purge_current_connection!

Methods included from Feature::CategorizeError

included

Methods included from Feature::Timeout

#timeout

Methods included from Feature::Performance

included, #profiler

Constructor Details

#initialize(name, opts) ⇒ Base

Returns a new instance of Base.



22
23
24
25
# File 'lib/gateway/base.rb', line 22

def initialize(name, opts)
  @name = name
  @options = opts
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



20
21
22
# File 'lib/gateway/base.rb', line 20

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



20
21
22
# File 'lib/gateway/base.rb', line 20

def options
  @options
end