Class: Estatic::HomePage

Inherits:
Page
  • Object
show all
Defined in:
lib/estatic/home_page.rb

Instance Attribute Summary collapse

Attributes inherited from Page

#resource

Instance Method Summary collapse

Methods inherited from Page

#content

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

#productsObject (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

#filenameObject



10
11
12
# File 'lib/estatic/home_page.rb', line 10

def filename
  'index.html'
end