Class: Dedalus::PatternLibrary::ApplicationHeader

Inherits:
Organism show all
Defined in:
lib/dedalus/pattern_library/organisms/app_header.rb

Instance Attribute Summary collapse

Attributes inherited from Element

#background_color, #color, #height, #height_percent, #margin, #offset, #position, #shown, #width, #width_percent, #z_order

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Element

#big_font, #code_font, #draw_bounding_box, #font, #huge_font, #initialize, #record?, #tiny_font, #view, #window

Constructor Details

This class inherits a constructor from Dedalus::Element

Instance Attribute Details

#subtitleObject

Returns the value of attribute subtitle.



4
5
6
# File 'lib/dedalus/pattern_library/organisms/app_header.rb', line 4

def subtitle
  @subtitle
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/dedalus/pattern_library/organisms/app_header.rb', line 4

def title
  @title
end

Class Method Details

.descriptionObject



17
18
19
# File 'lib/dedalus/pattern_library/organisms/app_header.rb', line 17

def self.description
  "An application header"
end

.example_dataObject



21
22
23
# File 'lib/dedalus/pattern_library/organisms/app_header.rb', line 21

def self.example_data
  { title: "Fake app", description: "Hello world" }
end

Instance Method Details

#paddingObject



13
14
15
# File 'lib/dedalus/pattern_library/organisms/app_header.rb', line 13

def padding
  16
end

#showObject



6
7
8
9
10
11
# File 'lib/dedalus/pattern_library/organisms/app_header.rb', line 6

def show
  [
    heading,
    subheading
  ]
end