Class: Appydave::Tools::Configuration::Models::BrandsConfig::BrandSettings

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

Overview

Type-safe class to access brand settings

Instance Attribute Summary collapse

Instance Method Summary collapse

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_subfolderObject

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_daysObject

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_hObject



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