Class: Gateway::Base
- Inherits:
-
Object
- Object
- Gateway::Base
- 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
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, opts) ⇒ Base
constructor
A new instance of Base.
Methods included from Connection
Methods included from Feature::CategorizeError
Methods included from Feature::Timeout
Methods included from Feature::Performance
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
20 21 22 |
# File 'lib/gateway/base.rb', line 20 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
20 21 22 |
# File 'lib/gateway/base.rb', line 20 def @options end |