Sha256: 32733ca48884d31a185919bbb1c7aa9af77008dbe80863c11b96e4d88ae0dd59
Contents?: true
Size: 344 Bytes
Versions: 1
Compression:
Stored size: 344 Bytes
Contents
module Vedeu class InterfaceCollection < Virtus::Attribute def coerce(values) return [] if values.nil? || values.empty? [values].flatten.map do |view_attributes| stored_attributes = API::Store.query(view_attributes[:name]) Interface.new(stored_attributes.merge!(view_attributes)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.1.10 | lib/vedeu/models/attributes/interface_collection.rb |