Class: Gruf::Rspec::MetadataFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/gruf/rspec/metadata_factory.rb

Overview

Factory for building metadata in an incoming controller request

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ MetadataFactory

Returns a new instance of MetadataFactory.

Parameters:

  • options (Hash) (defaults to: {})


27
28
29
# File 'lib/gruf/rspec/metadata_factory.rb', line 27

def initialize(options = {})
  @options = options || {}
end

Instance Method Details

#build(metadata = {}) ⇒ Hash

Parameters:

  • metadata (Hash) (defaults to: {})

Returns:

  • (Hash)


35
36
37
38
# File 'lib/gruf/rspec/metadata_factory.rb', line 35

def build( = {})
   ||= {}
  authentication_hydrator.hydrate()
end