Class: CycloneLariat::Options
- Inherits:
-
LunaPark::Values::Compound
- Object
- LunaPark::Values::Compound
- CycloneLariat::Options
- Defined in:
- lib/cyclone_lariat/options.rb
Instance Attribute Summary collapse
-
#aws_account_id ⇒ Object
Returns the value of attribute aws_account_id.
-
#aws_key ⇒ Object
Returns the value of attribute aws_key.
-
#aws_region ⇒ Object
Returns the value of attribute aws_region.
-
#aws_secret_key ⇒ Object
Returns the value of attribute aws_secret_key.
-
#driver ⇒ Object
Returns the value of attribute driver.
-
#fake_publish ⇒ Object
Returns the value of attribute fake_publish.
-
#inbox_dataset ⇒ Object
Returns the value of attribute inbox_dataset.
-
#instance ⇒ Object
Returns the value of attribute instance.
-
#publisher ⇒ Object
Returns the value of attribute publisher.
-
#version ⇒ Object
Returns the value of attribute version.
-
#versions_dataset ⇒ Object
Returns the value of attribute versions_dataset.
Instance Method Summary collapse
Instance Attribute Details
#aws_account_id ⇒ Object
Returns the value of attribute aws_account_id.
7 8 9 |
# File 'lib/cyclone_lariat/options.rb', line 7 def aws_account_id @aws_account_id end |
#aws_key ⇒ Object
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_region ⇒ Object
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_key ⇒ Object
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 |
#driver ⇒ Object
Returns the value of attribute driver.
7 8 9 |
# File 'lib/cyclone_lariat/options.rb', line 7 def driver @driver end |
#fake_publish ⇒ Object
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_dataset ⇒ Object
Returns the value of attribute inbox_dataset.
7 8 9 |
# File 'lib/cyclone_lariat/options.rb', line 7 def inbox_dataset @inbox_dataset end |
#instance ⇒ Object
Returns the value of attribute instance.
7 8 9 |
# File 'lib/cyclone_lariat/options.rb', line 7 def instance @instance end |
#publisher ⇒ Object
Returns the value of attribute publisher.
7 8 9 |
# File 'lib/cyclone_lariat/options.rb', line 7 def publisher @publisher end |
#version ⇒ Object
Returns the value of attribute version.
7 8 9 |
# File 'lib/cyclone_lariat/options.rb', line 7 def version @version end |
#versions_dataset ⇒ Object
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
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.aws_account_id ||= other.aws_account_id 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_h ⇒ Object
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: aws_account_id, inbox_dataset: inbox_dataset, version: version, versions_dataset: versions_dataset, driver: driver, fake_publish: fake_publish } end |