Class: RiderKick::FakerMapping

Inherits:
Object
  • Object
show all
Defined in:
lib/rider_kick/configuration.rb

Overview

Faker mapping registry for factory generator customization

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.mappingsObject (readonly)

Returns the value of attribute mappings.



43
44
45
# File 'lib/rider_kick/configuration.rb', line 43

def mappings
  @mappings
end

Class Method Details

.clearObject



53
54
55
# File 'lib/rider_kick/configuration.rb', line 53

def clear
  @mappings = {}
end

.get(expression) ⇒ Object



49
50
51
# File 'lib/rider_kick/configuration.rb', line 49

def get(expression)
  @mappings[expression]
end

.register(expression, &block) ⇒ Object



45
46
47
# File 'lib/rider_kick/configuration.rb', line 45

def register(expression, &block)
  @mappings[expression] = block
end