Class: Aesthetic
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Aesthetic
- Defined in:
- app/models/aesthetic.rb
Overview
This model holds the aesthetic modifications for each game. It allows for customization of select colors, and font.
Instance Attribute Summary collapse
-
#colors ⇒ Array<String>
An array of hex color values stored as strings.
-
#font ⇒ String
The font style used for text within the game.
-
#game_id ⇒ Integer
The foreign key that references the associated ‘Game` model.
-
#labels ⇒ Array<String>
An array of label names to match colors.
Instance Attribute Details
#colors ⇒ Array<String>
An array of hex color values stored as strings. (eg. “#000000”)
10 11 12 |
# File 'app/models/aesthetic.rb', line 10 def colors @colors end |
#font ⇒ String
The font style used for text within the game. (eg. “Arial”)
10 11 12 |
# File 'app/models/aesthetic.rb', line 10 def font @font end |
#game_id ⇒ Integer
The foreign key that references the associated ‘Game` model. (eg. 1)
10 11 12 |
# File 'app/models/aesthetic.rb', line 10 def game_id @game_id end |
#labels ⇒ Array<String>
An array of label names to match colors. (eg. “Background color”)
10 11 12 |
# File 'app/models/aesthetic.rb', line 10 def labels @labels end |