Sha256: e7c2b8244861f420fbffc6f4302320275eac4878bb7cf54c244b4420449bfc7d
Contents?: true
Size: 504 Bytes
Versions: 5
Compression:
Stored size: 504 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) end def by_keyword(input) query(entity, :keyword, input) end end end
Version data entries
5 entries across 5 versions & 1 rubygems