Sha256: 10e4d20c9f57630c3c4bc74471bf2911cc7303043a0bd6ec85d90f0504f53cc0
Contents?: true
Size: 633 Bytes
Versions: 2
Compression:
Stored size: 633 Bytes
Contents
module Vedeu module CommandRepository extend Repository extend self def by_keypress(input) query(entity, :keypress, input) end def by_keyword(input) query(entity, :keyword, input) end def create(attributes) super(Command.new(attributes)) end def entity Command end end # :nocov: module ClassMethods def command(name, entity, options = {}) command_name = name.is_a?(Symbol) ? name.to_s : name CommandRepository.create({ name: command_name, entity: entity, options: options }) end end # :nocov: end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.23 | lib/vedeu/repository/command_repository.rb |
vedeu-0.0.22 | lib/vedeu/repository/command_repository.rb |