Class: ApiBomb::Path::Sequence

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/api_bomb/path.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathsObject (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

#pickObject



12
13
14
# File 'lib/api_bomb/path.rb', line 12

def pick
  return paths.sample
end