Sha256: 3ab16da0a739704d0fe0ccd5705338f78e24a2445cff52798f0fcce0aedca218

Contents?: true

Size: 429 Bytes

Versions: 5

Compression:

Stored size: 429 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 = JSON.load(File.read('tests.json'))
          @to_a = array.inject([]) do |res, tested_request|
            res.push(Fitting::Records::Spherical::Request.load(tested_request))
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fitting-2.8.0 lib/fitting/records/spherical/requests.rb
fitting-2.7.2 lib/fitting/records/spherical/requests.rb
fitting-2.7.1 lib/fitting/records/spherical/requests.rb
fitting-2.7.0 lib/fitting/records/spherical/requests.rb
fitting-2.6.0 lib/fitting/records/spherical/requests.rb