module Eco module API class SessionConfig class UseCases < Hash attr_reader :config def initialize(root:) super(nil) @root = root @config = @root end # CUSTOM USE CASES def add new_group = Eco::API::UseCases::UseGroup.new yield(new_group, config) self["use_group"] ||= Eco::API::UseCases::UseGroup.new group = self["use_group"] group = group ? group.merge(new_group) : group self["use_group"] = group end def use_group self["use_group"] ||= Eco::API::UseCases::UseGroup.new end end end end end