Class: Ambling::Xy::Settings::ErrorMessages
- Inherits:
-
Object
- Object
- Ambling::Xy::Settings::ErrorMessages
- Includes:
- Base
- Defined in:
- lib/ambling/xy.rb
Overview
“error_messages” settings will be applied for all error messages except the one which is showed if settings file wasn’t found
Constant Summary collapse
- VALUES =
[:enabled,:x,:y,:color,:alpha,:text_color,:text_size]
Instance Attribute Summary collapse
-
#alpha ⇒ Object
- 100
-
(0 - 100) background alpha.
-
#color ⇒ Object
- #BBBB00
-
(hex color code) background color of error message.
-
#enabled ⇒ Object
- true
-
(true / false).
-
#text_color ⇒ Object
- #FFFFFF
-
(hex color code).
-
#text_size ⇒ Object
- text_size
-
(Number).
-
#x ⇒ Object
-
(Number / Number% / !Number) x position of error message.
-
#y ⇒ Object
-
(Number / Number% / !Number) y position of error message.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#alpha ⇒ Object
- 100
-
(0 - 100) background alpha
1191 1192 1193 |
# File 'lib/ambling/xy.rb', line 1191 def alpha @alpha end |
#color ⇒ Object
- #BBBB00
-
(hex color code) background color of error message. Separate color codes with comas for gradient
1186 1187 1188 |
# File 'lib/ambling/xy.rb', line 1186 def color @color end |
#enabled ⇒ Object
- true
-
(true / false)
1171 1172 1173 |
# File 'lib/ambling/xy.rb', line 1171 def enabled @enabled end |
#text_color ⇒ Object
- #FFFFFF
-
(hex color code)
1196 1197 1198 |
# File 'lib/ambling/xy.rb', line 1196 def text_color @text_color end |
#text_size ⇒ Object
- text_size
-
(Number)
1201 1202 1203 |
# File 'lib/ambling/xy.rb', line 1201 def text_size @text_size end |
#x ⇒ Object
-
(Number / Number% / !Number) x position of error message. If not set, will be aligned to the center
1176 1177 1178 |
# File 'lib/ambling/xy.rb', line 1176 def x @x end |
#y ⇒ Object
-
(Number / Number% / !Number) y position of error message. If not set, will be aligned to the center
1181 1182 1183 |
# File 'lib/ambling/xy.rb', line 1181 def y @y end |