Sha256: 4307583fb8e70fe93b88979b72809cee00b5418e5938558bef6613d0775c6034
Contents?: true
Size: 303 Bytes
Versions: 19
Compression:
Stored size: 303 Bytes
Contents
# frozen_string_literal: true module Arstotzka module TypeCast def to_car(hash) Car.new(hash.symbolize_keys) end end end class CarCollector include Arstotzka attr_reader :json expose :cars, full_path: 'cars.unit', type: :car def initialize(hash) @json = hash end end
Version data entries
19 entries across 19 versions & 1 rubygems