Sha256: 80a5366f541f5a349ee2dca5dae649f0a375149a237c21d7f10206c83886256d
Contents?: true
Size: 337 Bytes
Versions: 6
Compression:
Stored size: 337 Bytes
Contents
require 'json' require 'virtus' require_relative 'attributes/interface_collection' module Vedeu class Composition include Virtus.model attribute :interfaces, InterfaceCollection def to_json { interfaces: interfaces }.to_json end def to_s interfaces.map(&:to_s).join end end end
Version data entries
6 entries across 6 versions & 1 rubygems