Class: Gruf::Rspec::MetadataFactory
- Inherits:
-
Object
- Object
- Gruf::Rspec::MetadataFactory
- Defined in:
- lib/gruf/rspec/metadata_factory.rb
Overview
Factory for building metadata in an incoming controller request
Instance Method Summary collapse
- #build(metadata = {}) ⇒ Hash
-
#initialize(options = {}) ⇒ MetadataFactory
constructor
A new instance of MetadataFactory.
Constructor Details
#initialize(options = {}) ⇒ MetadataFactory
Returns a new instance of MetadataFactory.
27 28 29 |
# File 'lib/gruf/rspec/metadata_factory.rb', line 27 def initialize( = {}) @options = || {} end |
Instance Method Details
#build(metadata = {}) ⇒ Hash
35 36 37 38 |
# File 'lib/gruf/rspec/metadata_factory.rb', line 35 def build( = {}) ||= {} authentication_hydrator.hydrate() end |