class Fitting::Records::Spherical::Requests
Public Instance Methods
to_a()
click to toggle source
# File lib/fitting/records/spherical/requests.rb, line 8 def to_a return @to_a if @to_a array = [] Dir['fitting_tests/*.json'].each do |file| array += JSON.load(File.read(file)) end @to_a = array.inject([]) do |res, tested_request| request = Fitting::Records::Spherical::Request.load(tested_request) next res unless request.path.to_s.start_with?(Fitting.configuration.prefix) res.push(request) end end