Class: Appydave::Tools::Configuration::Models::BrandsConfig::BrandLocation
- Inherits:
-
Object
- Object
- Appydave::Tools::Configuration::Models::BrandsConfig::BrandLocation
- Defined in:
- lib/appydave/tools/configuration/models/brands_config.rb
Overview
Type-safe class to access brand location properties
Instance Attribute Summary collapse
-
#ssd_backup ⇒ Object
Returns the value of attribute ssd_backup.
-
#video_projects ⇒ Object
Returns the value of attribute video_projects.
Instance Method Summary collapse
-
#initialize(data) ⇒ BrandLocation
constructor
A new instance of BrandLocation.
- #to_h ⇒ Object
Constructor Details
#initialize(data) ⇒ BrandLocation
Returns a new instance of BrandLocation.
201 202 203 204 |
# File 'lib/appydave/tools/configuration/models/brands_config.rb', line 201 def initialize(data) @video_projects = data['video_projects'] @ssd_backup = data['ssd_backup'] end |
Instance Attribute Details
#ssd_backup ⇒ Object
Returns the value of attribute ssd_backup.
199 200 201 |
# File 'lib/appydave/tools/configuration/models/brands_config.rb', line 199 def ssd_backup @ssd_backup end |
#video_projects ⇒ Object
Returns the value of attribute video_projects.
199 200 201 |
# File 'lib/appydave/tools/configuration/models/brands_config.rb', line 199 def video_projects @video_projects end |
Instance Method Details
#to_h ⇒ Object
206 207 208 209 210 211 |
# File 'lib/appydave/tools/configuration/models/brands_config.rb', line 206 def to_h { 'video_projects' => @video_projects, 'ssd_backup' => @ssd_backup } end |