Class: NucleusCore::RequestAdapter

Inherits:
SimpleObject show all
Defined in:
lib/nucleus_core/request_adapter.rb

Instance Attribute Summary

Attributes inherited from SimpleObject

#__attributes__

Instance Method Summary collapse

Methods inherited from SimpleObject

#to_h

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