Class: InstallMethod
- Inherits:
-
Object
- Object
- InstallMethod
- Includes:
- ActiveModel::Serialization
- Defined in:
- app/models/install_method.rb
Instance Method Summary collapse
- #ease ⇒ Object
-
#initialize(options = {}) ⇒ InstallMethod
constructor
A new instance of InstallMethod.
- #install_method ⇒ Object
- #video ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ InstallMethod
Returns a new instance of InstallMethod.
5 6 7 8 |
# File 'app/models/install_method.rb', line 5 def initialize(={}) @name = [:name] @product_line = [:product_line] end |
Instance Method Details
#ease ⇒ Object
14 15 16 |
# File 'app/models/install_method.rb', line 14 def ease HeatingElementProductLineOption::INSTALLATION_LEVEL_BY_HEATING_SYSTEM_LIST[@name].to_s.capitalize end |
#install_method ⇒ Object
10 11 12 |
# File 'app/models/install_method.rb', line 10 def install_method HeatingElementProductLineOption::INSTALLATION_BLURB_BY_HEATING_SYSTEM_LIST[@name] end |
#video ⇒ Object
18 19 20 |
# File 'app/models/install_method.rb', line 18 def video ProductLine::VideoRetriever.new(tags: 'for-product-page-how-to-install').process(@product_line).all_videos.first end |