Class: Appydave::Tools::Configuration::Models::BrandsConfig::BrandAws

Inherits:
Object
  • Object
show all
Defined in:
lib/appydave/tools/configuration/models/brands_config.rb

Overview

Type-safe class to access brand AWS properties

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#profileObject

Returns the value of attribute profile.



216
217
218
# File 'lib/appydave/tools/configuration/models/brands_config.rb', line 216

def profile
  @profile
end

#regionObject

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_bucketObject

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_prefixObject

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_hObject



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