Class: RubyJard::Templates::ScreenTemplate

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_jard/templates/screen_template.rb

Overview

Template of a screen. A screen doesn’t have children. Each screen includes screen name, sizes androw template for rendering.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(screen: nil, row_template: nil, height_ratio: nil, width_ratio: nil, min_width: nil, min_height: nil, height: nil, width: nil, adjust_mode: nil) ⇒ ScreenTemplate

Returns a new instance of ScreenTemplate.



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/ruby_jard/templates/screen_template.rb', line 14

def initialize(
  screen: nil,
  row_template: nil,
  height_ratio: nil, width_ratio: nil,
  min_width: nil, min_height: nil,
  height: nil, width: nil,
  adjust_mode: nil
)
  @screen = screen
  @row_template = row_template
  @height_ratio = height_ratio
  @width_ratio = width_ratio
  @min_width = min_width
  @min_height = min_height
  @height = height
  @width = width
  @adjust_mode = adjust_mode
end

Instance Attribute Details

#adjust_modeObject (readonly)

Returns the value of attribute adjust_mode.



9
10
11
# File 'lib/ruby_jard/templates/screen_template.rb', line 9

def adjust_mode
  @adjust_mode
end

#heightObject (readonly)

Returns the value of attribute height.



9
10
11
# File 'lib/ruby_jard/templates/screen_template.rb', line 9

def height
  @height
end

#height_ratioObject (readonly)

Returns the value of attribute height_ratio.



9
10
11
# File 'lib/ruby_jard/templates/screen_template.rb', line 9

def height_ratio
  @height_ratio
end

#min_heightObject (readonly)

Returns the value of attribute min_height.



9
10
11
# File 'lib/ruby_jard/templates/screen_template.rb', line 9

def min_height
  @min_height
end

#min_widthObject (readonly)

Returns the value of attribute min_width.



9
10
11
# File 'lib/ruby_jard/templates/screen_template.rb', line 9

def min_width
  @min_width
end

#row_templateObject (readonly)

Returns the value of attribute row_template.



9
10
11
# File 'lib/ruby_jard/templates/screen_template.rb', line 9

def row_template
  @row_template
end

#screenObject (readonly)

Returns the value of attribute screen.



9
10
11
# File 'lib/ruby_jard/templates/screen_template.rb', line 9

def screen
  @screen
end

#widthObject (readonly)

Returns the value of attribute width.



9
10
11
# File 'lib/ruby_jard/templates/screen_template.rb', line 9

def width
  @width
end

#width_ratioObject (readonly)

Returns the value of attribute width_ratio.



9
10
11
# File 'lib/ruby_jard/templates/screen_template.rb', line 9

def width_ratio
  @width_ratio
end