Class: SimpleReport::Field
- Inherits:
-
Object
- Object
- SimpleReport::Field
- Defined in:
- lib/simple_report/field.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#force ⇒ Object
readonly
Returns the value of attribute force.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(name, field, format: nil, width: 10, value: nil, force: nil, &block) ⇒ Field
constructor
A new instance of Field.
Constructor Details
#initialize(name, field, format: nil, width: 10, value: nil, force: nil, &block) ⇒ Field
Returns a new instance of Field.
5 6 7 8 9 10 11 12 13 |
# File 'lib/simple_report/field.rb', line 5 def initialize(name, field, format: nil, width: 10, value: nil, force: nil, &block) @name = name @field = field @width = width @value = value @block = block @format = format @force = force end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
3 4 5 |
# File 'lib/simple_report/field.rb', line 3 def block @block end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
3 4 5 |
# File 'lib/simple_report/field.rb', line 3 def field @field end |
#force ⇒ Object (readonly)
Returns the value of attribute force.
3 4 5 |
# File 'lib/simple_report/field.rb', line 3 def force @force end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
3 4 5 |
# File 'lib/simple_report/field.rb', line 3 def format @format end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/simple_report/field.rb', line 3 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/simple_report/field.rb', line 3 def value @value end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
3 4 5 |
# File 'lib/simple_report/field.rb', line 3 def width @width end |