Class: VCRAssistant::FileName

Inherits:
Object
  • Object
show all
Defined in:
lib/vcr_assistant/file_name.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(example) ⇒ FileName

Returns a new instance of FileName.



6
7
8
# File 'lib/vcr_assistant/file_name.rb', line 6

def initialize(example)
  @example = example
end

Class Method Details

.call(example) ⇒ Object



2
3
4
# File 'lib/vcr_assistant/file_name.rb', line 2

def self.call(example)
  new(example).call
end

Instance Method Details

#callObject



10
11
12
# File 'lib/vcr_assistant/file_name.rb', line 10

def call
  "#{folder}/#{file}"
end