Sha256: 528a238e0bd06ca6a5be688d0dfa220c73383eca50ea4aa9a7d6ab6b9230a2f5
Contents?: true
Size: 506 Bytes
Versions: 6
Compression:
Stored size: 506 Bytes
Contents
module GoldenFleece class Context module Export def export(record, export_attributes) export_attributes = Array.wrap export_attributes schemas.reduce({}) { |memo, (attribute, schema)| if export_attributes.include? attribute memo[attribute] = schema.reduce({}) { |memo, (schema_name, schema)| memo[schema_name] = schema.value.compute(record) memo } end memo } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems