Sha256: 141b68a54667d7b4fa1d7c1961f76bd0818fc6fab22d2f21b6f0053d623721f2
Contents?: true
Size: 406 Bytes
Versions: 6
Compression:
Stored size: 406 Bytes
Contents
require 'virtus' require 'vedeu/models/attributes/interface_collection' # Todo: mutation (interfaces) module Vedeu class Composition include Virtus.model attribute :interfaces, InterfaceCollection def self.enqueue(attributes) new(attributes).enqueue end def enqueue interfaces.map(&:enqueue) end def to_s interfaces.map(&:to_s).join end end end
Version data entries
6 entries across 6 versions & 1 rubygems