Sha256: 4737a925a55a961d6016f86109e5b2d3dff30d221ac70347d27c3f342b90ede9
Contents?: true
Size: 850 Bytes
Versions: 1
Compression:
Stored size: 850 Bytes
Contents
module Vedeu class InterfaceRepository extend Repository class << self def activate(name) deactivate all.map do |interface| interface.active = true if interface.name == name end end def deactivate all.map { |interface| interface.active = false } end def activated query(klass, :active, true) end def find_by_name(value) query(klass, :name, value) end def initial_state all.map { |interface| interface.initial_state } end def update; end def input all.map do |interface| interface.origin interface.input end end def output all.map { |interface| interface.output } end def klass Interface end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.11 | lib/vedeu/repository/interface_repository.rb |