Class: FactoryHelper::Team
- Inherits:
-
Base
- Object
- Base
- FactoryHelper::Team
show all
- Defined in:
- lib/factory-helper/team.rb
Constant Summary
Constants inherited
from Base
Base::Letters, Base::Numbers, Base::ULetters
Class Method Summary
collapse
Methods inherited from Base
bothify, fetch, flexible, letterify, method_missing, numerify, parse, rand_in_range, regexify, translate
Class Method Details
.creature ⇒ Object
11
12
13
|
# File 'lib/factory-helper/team.rb', line 11
def creature
fetch('team.creature')
end
|
.name ⇒ Object
7
8
9
|
# File 'lib/factory-helper/team.rb', line 7
def name
parse('team.name')
end
|
.state ⇒ Object
15
16
17
|
# File 'lib/factory-helper/team.rb', line 15
def state
fetch('address.state').split(' ').map(&:capitalize).join(' ')
end
|