Class: Ambling::Line::Settings::ErrorMessages

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/ambling/line.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

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#alphaObject

100

(0 - 100) background alpha



1405
1406
1407
# File 'lib/ambling/line.rb', line 1405

def alpha
  @alpha
end

#colorObject

#BBBB00

(hex color code) background color of error message. Separate color codes with comas for gradient



1400
1401
1402
# File 'lib/ambling/line.rb', line 1400

def color
  @color
end

#enabledObject

true

(true / false)



1385
1386
1387
# File 'lib/ambling/line.rb', line 1385

def enabled
  @enabled
end

#text_colorObject

#FFFFFF

(hex color code)



1410
1411
1412
# File 'lib/ambling/line.rb', line 1410

def text_color
  @text_color
end

#text_sizeObject

text_size

(Number)



1415
1416
1417
# File 'lib/ambling/line.rb', line 1415

def text_size
  @text_size
end

#xObject

(Number / Number% / !Number) x position of error message. If not set, will be aligned to the center



1390
1391
1392
# File 'lib/ambling/line.rb', line 1390

def x
  @x
end

#yObject

(Number / Number% / !Number) y position of error message. If not set, will be aligned to the center



1395
1396
1397
# File 'lib/ambling/line.rb', line 1395

def y
  @y
end