Sha256: bc8e70809d0fcf4c48cecefe6bceba95da1285b7bc6a868df5d9ded4f2559ed1
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
# frozen_string_literal: true require "flex_station_data/presenters/plate_hash" module FlexStationData module Presenters class PlatesHash include Concerns::Presenter attr_reader :file, :plates, :options def initialize(file, plates, **options) @file = file @plates = plates @options = options end def present base = { "file" => file.basename.to_s } plates.flat_map do |plate| PlateHash.present(plate, **options).map(&base.method(:merge)) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flex-station-data-1.0.2 | lib/flex_station_data/presenters/plates_hash.rb |