Class: Appydave::Tools::Configuration::Models::BrandsConfig::BrandAws
- Inherits:
-
Object
- Object
- Appydave::Tools::Configuration::Models::BrandsConfig::BrandAws
- Defined in:
- lib/appydave/tools/configuration/models/brands_config.rb
Overview
Type-safe class to access brand AWS properties
Instance Attribute Summary collapse
-
#profile ⇒ Object
Returns the value of attribute profile.
-
#region ⇒ Object
Returns the value of attribute region.
-
#s3_bucket ⇒ Object
Returns the value of attribute s3_bucket.
-
#s3_prefix ⇒ Object
Returns the value of attribute s3_prefix.
Instance Method Summary collapse
-
#initialize(data) ⇒ BrandAws
constructor
A new instance of BrandAws.
- #to_h ⇒ Object
Constructor Details
#initialize(data) ⇒ BrandAws
Returns a new instance of BrandAws.
218 219 220 221 222 223 |
# File 'lib/appydave/tools/configuration/models/brands_config.rb', line 218 def initialize(data) @profile = data['profile'] @region = data['region'] || 'ap-southeast-1' @s3_bucket = data['s3_bucket'] @s3_prefix = data['s3_prefix'] end |
Instance Attribute Details
#profile ⇒ Object
Returns the value of attribute profile.
216 217 218 |
# File 'lib/appydave/tools/configuration/models/brands_config.rb', line 216 def profile @profile end |
#region ⇒ Object
Returns the value of attribute region.
216 217 218 |
# File 'lib/appydave/tools/configuration/models/brands_config.rb', line 216 def region @region end |
#s3_bucket ⇒ Object
Returns the value of attribute s3_bucket.
216 217 218 |
# File 'lib/appydave/tools/configuration/models/brands_config.rb', line 216 def s3_bucket @s3_bucket end |
#s3_prefix ⇒ Object
Returns the value of attribute s3_prefix.
216 217 218 |
# File 'lib/appydave/tools/configuration/models/brands_config.rb', line 216 def s3_prefix @s3_prefix end |
Instance Method Details
#to_h ⇒ Object
225 226 227 228 229 230 231 232 |
# File 'lib/appydave/tools/configuration/models/brands_config.rb', line 225 def to_h { 'profile' => @profile, 'region' => @region, 's3_bucket' => @s3_bucket, 's3_prefix' => @s3_prefix } end |