Class: Appydave::Tools::Configuration::Models::BrandsConfig::BrandLocation

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

Overview

Type-safe class to access brand location properties

Instance Attribute Summary collapse

Instance Method Summary collapse

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_backupObject

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_projectsObject

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_hObject



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