Class: SPV::Fixtures::Converter

Inherits:
Object
  • Object
show all
Defined in:
lib/site_prism_vcr/fixtures/converter.rb

Class Method Summary collapse

Class Method Details

.convert_raw(raw_list) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/site_prism_vcr/fixtures/converter.rb', line 6

def self.convert_raw(raw_list)
  raw_list.map do |item|
    if item.kind_of?(String)
      Fixture.new(item)
    else
      Fixture.new(item[:fixture], item[:options])
    end
  end
end