Class: Appydave::Tools::Configuration::Models::BrandsConfig::BrandSettings
- Inherits:
-
Object
- Object
- Appydave::Tools::Configuration::Models::BrandsConfig::BrandSettings
- Defined in:
- lib/appydave/tools/configuration/models/brands_config.rb
Overview
Type-safe class to access brand settings
Instance Attribute Summary collapse
-
#projects_subfolder ⇒ Object
Returns the value of attribute projects_subfolder.
-
#s3_cleanup_days ⇒ Object
Returns the value of attribute s3_cleanup_days.
Instance Method Summary collapse
-
#initialize(data) ⇒ BrandSettings
constructor
A new instance of BrandSettings.
- #to_h ⇒ Object
Constructor Details
#initialize(data) ⇒ BrandSettings
239 240 241 242 |
# File 'lib/appydave/tools/configuration/models/brands_config.rb', line 239 def initialize(data) @s3_cleanup_days = data['s3_cleanup_days'] || 90 @projects_subfolder = data['projects_subfolder'] || '' end |
Instance Attribute Details
#projects_subfolder ⇒ Object
Returns the value of attribute projects_subfolder.
237 238 239 |
# File 'lib/appydave/tools/configuration/models/brands_config.rb', line 237 def projects_subfolder @projects_subfolder end |
#s3_cleanup_days ⇒ Object
Returns the value of attribute s3_cleanup_days.
237 238 239 |
# File 'lib/appydave/tools/configuration/models/brands_config.rb', line 237 def s3_cleanup_days @s3_cleanup_days end |
Instance Method Details
#to_h ⇒ Object
244 245 246 247 248 249 |
# File 'lib/appydave/tools/configuration/models/brands_config.rb', line 244 def to_h { 's3_cleanup_days' => @s3_cleanup_days, 'projects_subfolder' => @projects_subfolder } end |