Commit a4a29e2e authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add TODOs to refactoried variables collections code

parent b94db067
......@@ -14,6 +14,7 @@ module Gitlab
@variables.append(Collection::Item.fabricate(resource))
end
# TODO, specs
def concat(resources)
resources.each { |variable| self.append(variable) }
end
......
......@@ -3,6 +3,8 @@ module Gitlab
module Variables
class Collection
class Item
# TODO, public by default?
#
def initialize(**options)
@variable = {
key: options.fetch(:key),
......@@ -28,6 +30,8 @@ module Gitlab
end
def self.fabricate(resource)
# TODO, to_runner_variable by default for class < ActiveRecord::Base
#
case resource
when Hash
self.new(resource)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment