Sha256: 4ed06e14426a7fccb5bf0cc989d10ec2899147a532607d500b45f998d9c2598e
Contents?: true
Size: 522 Bytes
Versions: 3
Compression:
Stored size: 522 Bytes
Contents
require_relative '../models/command' require_relative 'repository' module Vedeu module CommandRepository extend Repository extend self def by_input(input) by_keypress(input) || by_keyword(input) end def create(attributes) super(entity.new(attributes)) end def entity Command end private def by_keypress(input) query(entity, :keypress, input) || false end def by_keyword(input) query(entity, :keyword, input) || false end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.33 | lib/vedeu/repository/command_repository.rb |
vedeu-0.0.32 | lib/vedeu/repository/command_repository.rb |
vedeu-0.0.31 | lib/vedeu/repository/command_repository.rb |