Class: Bookingit::Views::IndexView

Inherits:
BaseView
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/bookingit/views/index_view.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stylesheets, theme, front_matter, main_matter, back_matter, config) ⇒ IndexView

Returns a new instance of IndexView.



11
12
13
14
15
16
17
# File 'lib/bookingit/views/index_view.rb', line 11

def initialize(stylesheets,theme,front_matter,main_matter,back_matter,config)
  @header_view = HeaderView.new(stylesheets,theme,config)
  @front_matter = front_matter
  @main_matter = main_matter
  @back_matter = back_matter
  super(config)
end

Instance Attribute Details

#back_matterObject (readonly)

Returns the value of attribute back_matter.



8
9
10
# File 'lib/bookingit/views/index_view.rb', line 8

def back_matter
  @back_matter
end

#configObject (readonly)

Returns the value of attribute config.



8
9
10
# File 'lib/bookingit/views/index_view.rb', line 8

def config
  @config
end

#front_matterObject (readonly)

Returns the value of attribute front_matter.



8
9
10
# File 'lib/bookingit/views/index_view.rb', line 8

def front_matter
  @front_matter
end

#main_matterObject (readonly)

Returns the value of attribute main_matter.



8
9
10
# File 'lib/bookingit/views/index_view.rb', line 8

def main_matter
  @main_matter
end