Class: NucleusCore::RequestAdapter
- Inherits:
-
SimpleObject
- Object
- SimpleObject
- NucleusCore::RequestAdapter
- Defined in:
- lib/nucleus_core/request_adapter.rb
Instance Attribute Summary
Attributes inherited from SimpleObject
Instance Method Summary collapse
-
#initialize(attrs = nil) ⇒ RequestAdapter
constructor
A new instance of RequestAdapter.
Methods inherited from SimpleObject
Constructor Details
#initialize(attrs = nil) ⇒ RequestAdapter
Returns a new instance of RequestAdapter.
5 6 7 8 9 10 11 12 |
# File 'lib/nucleus_core/request_adapter.rb', line 5 def initialize(attrs=nil) attrs ||= {} attributes = defaults .merge(attrs) .slice(*defaults.keys) super(attributes) end |