Sha256: bf8ce2f355d9e5030f7b905becaecc3a140e2452659d6e726798d8e64f19ced7
Contents?: true
Size: 630 Bytes
Versions: 6
Compression:
Stored size: 630 Bytes
Contents
require 'fitting/records/spherical/request' require 'json' module Fitting class Records class Spherical class Requests 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 end end end end
Version data entries
6 entries across 6 versions & 1 rubygems