class CC::Config::Prepare

Attributes

fetch[R]

Public Class Methods

from_data(data) click to toggle source
# File lib/cc/config/prepare.rb, line 6
def self.from_data(data)
  if data.present?
    fetch = Fetch.from_data(data.fetch("fetch", []))

    new(fetch: fetch)
  else
    new
  end
end
new(fetch: Fetch.new) click to toggle source
# File lib/cc/config/prepare.rb, line 16
def initialize(fetch: Fetch.new)
  @fetch = fetch
end

Public Instance Methods

merge(other) click to toggle source
# File lib/cc/config/prepare.rb, line 20
def merge(other)
  Prepare.new(fetch: fetch.merge(other.fetch))
end