Class: RiderKick::FakerMapping
- Inherits:
-
Object
- Object
- RiderKick::FakerMapping
- Defined in:
- lib/rider_kick/configuration.rb
Overview
Faker mapping registry for factory generator customization
Class Attribute Summary collapse
-
.mappings ⇒ Object
readonly
Returns the value of attribute mappings.
Class Method Summary collapse
Class Attribute Details
.mappings ⇒ Object (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
.clear ⇒ Object
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 |