Class: ApiBomb::Path::Sequence
- Inherits:
-
Object
- Object
- ApiBomb::Path::Sequence
- Extended by:
- Forwardable
- Includes:
- Enumerable
- Defined in:
- lib/api_bomb/path.rb
Instance Attribute Summary collapse
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
Instance Method Summary collapse
-
#initialize(paths) ⇒ Sequence
constructor
A new instance of Sequence.
- #pick ⇒ Object
Constructor Details
#initialize(paths) ⇒ Sequence
Returns a new instance of Sequence.
8 9 10 |
# File 'lib/api_bomb/path.rb', line 8 def initialize(paths) @paths = paths end |
Instance Attribute Details
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
7 8 9 |
# File 'lib/api_bomb/path.rb', line 7 def paths @paths end |
Instance Method Details
#pick ⇒ Object
12 13 14 |
# File 'lib/api_bomb/path.rb', line 12 def pick return paths.sample end |