Sha256: 2f56c7e7ef80c34f8e971177d24a718e64ee12c399a383dfe01fdf90afa121c2
Contents?: true
Size: 1.51 KB
Versions: 5
Compression:
Stored size: 1.51 KB
Contents
# frozen_string_literal: true require 'luna_park/values/compound' module CycloneLariat class Options < LunaPark::Values::Compound attr_accessor :aws_key, :aws_secret_key, :publisher, :aws_region, :instance, :aws_account_id, :messages_dataset, :version, :versions_dataset, :driver, :fake_publish # @param [CycloneLariat::Options, Hash] other # @return [CycloneLariat::Options] def merge!(other) other = self.class.wrap(other) self.aws_key ||= other.aws_key self.aws_secret_key ||= other.aws_secret_key self.publisher ||= other.publisher self.aws_region ||= other.aws_region self.instance ||= other.instance self.aws_account_id ||= other.aws_account_id self.messages_dataset ||= other.messages_dataset self.version ||= other.version self.versions_dataset ||= other.versions_dataset self.driver ||= other.driver self.fake_publish ||= other.fake_publish self end def merge(other) dup.merge!(other) end def to_h { aws_key: aws_key, aws_secret_key: aws_secret_key, publisher: publisher, aws_region: aws_region, instance: instance, aws_account_id: aws_account_id, messages_dataset: messages_dataset, version: version, versions_dataset: versions_dataset, driver: driver, fake_publish: fake_publish } end end end
Version data entries
5 entries across 5 versions & 1 rubygems