Sha256: b46b4e085b2235da6205ffac50f1f7463a06aaf33805680f1a25adf4858d55c0
Contents?: true
Size: 777 Bytes
Versions: 2
Compression:
Stored size: 777 Bytes
Contents
require "singleton" module Evertils module Common module Manager class Note < Manager::Base include Singleton # # @since 0.3.0 def create(config) entity = Evertils::Common::Entity::Note.new entity.create(config) entity end # # @since 0.3.0 def find(name) entity = Evertils::Common::Entity::Note.new entity.find(name) entity end # # @since 0.3.1 def find_or_create(name, stack = nil) search_result = find(name) if !search_result note = create(name, stack) else note = search_result end note end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
evertils-common-0.3.3.1 | lib/evertils/common/manager/note.rb |
evertils-common-0.3.3 | lib/evertils/common/manager/note.rb |