Class: CycloneLariat::Options

Inherits:
LunaPark::Values::Compound
  • Object
show all
Defined in:
lib/cyclone_lariat/options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#aws_account_idObject

Returns the value of attribute aws_account_id.



7
8
9
# File 'lib/cyclone_lariat/options.rb', line 7

def 
  @aws_account_id
end

#aws_keyObject

Returns the value of attribute aws_key.



7
8
9
# File 'lib/cyclone_lariat/options.rb', line 7

def aws_key
  @aws_key
end

#aws_regionObject

Returns the value of attribute aws_region.



7
8
9
# File 'lib/cyclone_lariat/options.rb', line 7

def aws_region
  @aws_region
end

#aws_secret_keyObject

Returns the value of attribute aws_secret_key.



7
8
9
# File 'lib/cyclone_lariat/options.rb', line 7

def aws_secret_key
  @aws_secret_key
end

#driverObject

Returns the value of attribute driver.



7
8
9
# File 'lib/cyclone_lariat/options.rb', line 7

def driver
  @driver
end

#fake_publishObject

Returns the value of attribute fake_publish.



7
8
9
# File 'lib/cyclone_lariat/options.rb', line 7

def fake_publish
  @fake_publish
end

#inbox_datasetObject

Returns the value of attribute inbox_dataset.



7
8
9
# File 'lib/cyclone_lariat/options.rb', line 7

def inbox_dataset
  @inbox_dataset
end

#instanceObject

Returns the value of attribute instance.



7
8
9
# File 'lib/cyclone_lariat/options.rb', line 7

def instance
  @instance
end

#publisherObject

Returns the value of attribute publisher.



7
8
9
# File 'lib/cyclone_lariat/options.rb', line 7

def publisher
  @publisher
end

#versionObject

Returns the value of attribute version.



7
8
9
# File 'lib/cyclone_lariat/options.rb', line 7

def version
  @version
end

#versions_datasetObject

Returns the value of attribute versions_dataset.



7
8
9
# File 'lib/cyclone_lariat/options.rb', line 7

def versions_dataset
  @versions_dataset
end

Instance Method Details

#merge(other) ⇒ Object



32
33
34
# File 'lib/cyclone_lariat/options.rb', line 32

def merge(other)
  dup.merge!(other)
end

#merge!(other) ⇒ CycloneLariat::Options

Parameters:

Returns:



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/cyclone_lariat/options.rb', line 14

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.                ||= other.
  self.inbox_dataset                 ||= other.inbox_dataset
  self.version                       ||= other.version
  self.versions_dataset              ||= other.versions_dataset
  self.driver                        ||= other.driver
  self.fake_publish                  ||= other.fake_publish

  self
end

#to_hObject



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/cyclone_lariat/options.rb', line 36

def to_h
  {
    aws_key: aws_key,
    aws_secret_key: aws_secret_key,
    publisher: publisher,
    aws_region: aws_region,
    instance: instance,
    aws_account_id: ,
    inbox_dataset: inbox_dataset,
    version: version,
    versions_dataset: versions_dataset,
    driver: driver,
    fake_publish: fake_publish
  }
end