Class: Estatic::HomePage
Instance Attribute Summary collapse
-
#products ⇒ Object
readonly
Returns the value of attribute products.
Attributes inherited from Page
Instance Method Summary collapse
- #filename ⇒ Object
-
#initialize(resource) ⇒ HomePage
constructor
A new instance of HomePage.
Methods inherited from Page
Constructor Details
#initialize(resource) ⇒ HomePage
Returns a new instance of HomePage.
5 6 7 8 |
# File 'lib/estatic/home_page.rb', line 5 def initialize(resource) super(resource) @products = resource.products end |
Instance Attribute Details
#products ⇒ Object (readonly)
Returns the value of attribute products.
3 4 5 |
# File 'lib/estatic/home_page.rb', line 3 def products @products end |
Instance Method Details
#filename ⇒ Object
10 11 12 |
# File 'lib/estatic/home_page.rb', line 10 def filename 'index.html' end |