Class: Bookingit::Views::HeaderView

Inherits:
BaseView
  • Object
show all
Defined in:
lib/bookingit/views/header_view.rb

Instance Attribute Summary collapse

Attributes inherited from BaseView

#config

Instance Method Summary collapse

Constructor Details

#initialize(stylesheets, theme, config) ⇒ HeaderView

Returns a new instance of HeaderView.



8
9
10
11
12
13
14
# File 'lib/bookingit/views/header_view.rb', line 8

def initialize(stylesheets, theme, config)
  @stylesheets = stylesheets.map { |stylesheet|
    OpenStruct.new(path: stylesheet, media: "all")
  }
  @theme = theme
  super(config)
end

Instance Attribute Details

#stylesheetsObject (readonly)

Returns the value of attribute stylesheets.



6
7
8
# File 'lib/bookingit/views/header_view.rb', line 6

def stylesheets
  @stylesheets
end

#themeObject (readonly)

Returns the value of attribute theme.



6
7
8
# File 'lib/bookingit/views/header_view.rb', line 6

def theme
  @theme
end